OnlineNotes Logo

    HTML Online Viewer

    Use this html online viewer for cms content QA, static page snippet checks, and sanitized html verification before release.

    Input

    Output

    When to use this tool

    Use this page to check rendered HTML, inspect sanitized output, and copy clean markup before publishing.

    It works well for CMS snippets, docs blocks, and quick QA before release.

    Frequently asked questions

    Why use an HTML online viewer before publishing?

    It lets you verify rendering and sanitized output before snippets move into templates, CMS blocks, or documentation pages.

    What is strict sanitize mode for?

    Strict mode keeps a tighter allow-list for input from untrusted sources.

    Does this send my snippet to a backend?

    No. Rendering and sanitization run in the browser on your device.

    Related tools

    HTML online viewer for CMS snippet QA and safe publishing checks

    Use this HTML online viewer to see how a snippet renders before you paste it into a CMS block, help article, or release note.

    It runs your markup through a sanitizer first, so the preview shows what is left after unsafe tags and attributes are removed. Check the heading order, the list spacing, and what was dropped.

    How it works

    1. Paste or type HTML in the editor. The output updates on each change, so there is no button to press.
    2. Pick a Sanitize level. Balanced keeps tables, images, horizontal rules, and strikethrough. Strict removes all of those and leaves basic text, links, lists, headings, and code.
    3. Switch between three views: Preview shows the rendered result, Sanitized HTML shows the cleaned code, and Raw HTML shows exactly what you typed.
    4. Press Copy sanitized HTML to take the cleaned code. Nothing is copied while the input is blank.

    Worked example

    Input

    <h2 style="color:red" onclick="track()">Spring sale</h2>
    <div class="promo"><p>Ends <b>Friday</b>. <a href="javascript:alert(1)">Details</a></p></div>
    <script>alert(1)</script>
    <img src="logo.png" alt="Logo">

    Output

    <h2>Spring sale</h2>
    <p>Ends <b>Friday</b>. <a>Details</a></p>
    
    <img src="logo.png" alt="Logo">

    This is the Sanitized HTML view at the Balanced level. The style and onclick attributes are gone, the div wrapper is removed but its content stays, the script and its content are deleted, and the javascript: link loses its href. At the Strict level the image is removed as well.

    Edge cases and limits

    • Your own CSS is not applied. Style tags and style attributes are removed, and the preview uses this page's typography, so colors and spacing will differ from your live site.
    • This is not a validator and shows no error messages. Broken markup is repaired by the browser parser: "<p>one<ul><li>two</ul><b>bold" comes back as "<p>one</p><ul><li>two</li></ul><b>bold</b>".
    • Layout tags such as div, section, and article are not on the allow-list. They disappear and their text remains, so a layout built on them will look flat in the preview.
    • The id attribute is also removed, so links that jump to an anchor inside your snippet will not work. There is no file upload and no way to load a page from a URL.

    When to use it

    • Preview a newsletter snippet before pasting it into a WYSIWYG editor.
    • Check what remains of user-submitted HTML after cleaning.
    • See how a CTA block or comparison table looks once broken tags are repaired.
    • Switch between your raw HTML and the cleaned code during review.