Advertisement

HTML Viewer

Paste HTML and see it rendered live with CSS and JavaScript - then format, minify or test it at phone width.

Last updated:

HTML Viewer
Live preview · Format · Minify
Paste HTML to see it rendered. Scripts run in a locked sandbox and cannot reach this site.

How to Run HTML Online

1
Paste HTML code or open an .html file
2
Watch the preview update live (or press Run)
3
Switch to Phone 390 to check mobile, then format or download

The preview runs in a sandbox, so scripts cannot read this page or your cookies.

What You Can Do Here

TaskButtonAlso searched as
See how HTML looksRun / Previewhtml viewer, html preview, render html, view html online
Test on mobilePhone 390responsive preview, mobile view html
Tidy messy codeFormat HTMLhtml formatter, html beautifier, prettify html
Shrink codeMinifyhtml minifier, compress html
Get only the wordsExtract texthtml to text

Common Uses

Basic HTML Page Template

PartPurpose
<!DOCTYPE html>Tells the browser to use modern standards mode
<meta name="viewport">Makes the page fit phone screens
<style>CSS for colours and layout
<body>Everything visible on the page
<script>JavaScript for interaction

Format vs Minify

Is It Safe to Run Unknown HTML Here?

View HTML Without a Tool

WhereHow
Any browserSave as .html and double-click
Chrome / EdgeCtrl+U to view a site's source
VS CodeLive Server extension

Previewing HTML Emails

Common HTML Entities

CharacterEntityUse
&&amp;Ampersand in text and URLs
<&lt;Show a tag as text
>&gt;Greater-than sign
"&quot;Quote inside an attribute
non-breaking space&nbsp;Keep words together
©&copy;Copyright sign

Related Tools

Frequently Asked Questions

How do I view HTML code as a web page? +

Paste it in the box above; the preview on the right renders it live, including CSS and JavaScript.

Can I run JavaScript in this HTML viewer? +

Yes. Scripts run inside a sandboxed preview that cannot access this site.

How do I format messy HTML? +

Press Format HTML to add indentation and line breaks.

How do I check how my HTML looks on mobile? +

Choose Phone 390 or Tablet 768 from the width menu.

Can I open an .html file? +

Yes. Press Open .html file and pick it from your device.

Is my code uploaded? +

No. Everything stays in your browser.

How do I convert HTML to plain text? +

Press Extract text. Scripts and styles are removed and the text is copied.

Why do external images not load? +

The image URL may be relative or blocked. Use full https:// links in the HTML.

About the creator Prajwal Karkera, creator of ToolsFlow

Built and maintained by Prajwal Karkera, a digital product specialist with 8+ years of experience in digital products. Found a problem with this tool? Let us know through the Contact page.
Read more about me →