No file open

      

View or edit an HTML file

Files stay in this browser. The preview restricts network access; scripts start off.

Or drop a file or folder here. Opens .html, .htm, .mhtml and .mht (saved complete pages), and folders with pages and their images, styles and scripts.

Paste code

Reopen with encoding

If characters look wrong, the file may use another encoding. Reopening reads the file again; edits are lost.

Settings

Editor
Kept on this device

Stored only in this browser. Nothing is sent anywhere.

Keyboard shortcuts

Ctrl+SSave
Ctrl+Shift+SSave as
Ctrl+OOpen a file
Ctrl+PPrint the page
Ctrl+E (Edit)Expand an Emmet abbreviation
Tab (Edit)Expand an abbreviation, or indent
Esc then TabLeave the editor with the keyboard
Ctrl+F (Edit)Find and replace
Ctrl+Alt+GGo to line
Ctrl+/Comment / uncomment
Shift+Alt+FFormat
Ctrl+Shift+MProblems list
Ctrl+DSelect the next match (several cursors)
Alt+↑/↓Move the line up / down
Ctrl+[ / ]Indent less / more

On a Mac, use ⌘ for Ctrl and ⌥ for Alt.

Emmet abbreviations

Type an abbreviation and press Tab (or Ctrl+E).

ul>li*3a list with three items
div.card>h2+pa div with class "card", a heading and a paragraph
a:link / imga link / an image with its attributes
table>tr*2>td*3a table, 2 rows of 3 cells
p{Hello}a paragraph with text
!a whole new page
m10 (in CSS)margin: 10px;