Paste HTML and see it rendered live with CSS and JavaScript - then format, minify or test it at phone width.
Last updated:
The preview runs in a sandbox, so scripts cannot read this page or your cookies.
| Task | Button | Also searched as |
|---|---|---|
| See how HTML looks | Run / Preview | html viewer, html preview, render html, view html online |
| Test on mobile | Phone 390 | responsive preview, mobile view html |
| Tidy messy code | Format HTML | html formatter, html beautifier, prettify html |
| Shrink code | Minify | html minifier, compress html |
| Get only the words | Extract text | html to text |
| Part | Purpose |
|---|---|
| <!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 |
| Where | How |
|---|---|
| Any browser | Save as .html and double-click |
| Chrome / Edge | Ctrl+U to view a site's source |
| VS Code | Live Server extension |
| Character | Entity | Use |
|---|---|---|
| & | & | Ampersand in text and URLs |
| < | < | Show a tag as text |
| > | > | Greater-than sign |
| " | " | Quote inside an attribute |
| non-breaking space | | Keep words together |
| © | © | Copyright sign |
Paste it in the box above; the preview on the right renders it live, including CSS and JavaScript.
Yes. Scripts run inside a sandboxed preview that cannot access this site.
Press Format HTML to add indentation and line breaks.
Choose Phone 390 or Tablet 768 from the width menu.
Yes. Press Open .html file and pick it from your device.
No. Everything stays in your browser.
Press Extract text. Scripts and styles are removed and the text is copied.
The image URL may be relative or blocked. Use full https:// links in the HTML.