Home › Developer Tools › HTML Editor

Online HTML Editor with Live Preview

Write HTML and see the page update live. Format your code, then copy it or download it as an .html file.

How to use HTML Editor

Step by step

1

Write your code

Type or paste it into the editor on the left.

2

Watch the preview

The page on the right updates as you type, in a sandbox.

3

Copy or download

Copy the code or save it as a file.

Features and benefits

What you get

Live preview

Your page is shown in a sandboxed frame.

Sandboxed

The preview cannot read this site or your files; it runs in an isolated frame.

Format with one click

Tidy your code using the built-in formatter.

No sign-up

Open the page and start.

Supported formats and limitations

What to expect

Supported formats

HTML

Size limits

Limited by browser memory

Limitations

The preview is sandboxed: it cannot use cookies, storage or open pop-ups. An endless loop in a script can freeze the tab.

Frequently asked questions

Quick answers

Is my code saved?

No. Download it if you want to keep it. Closing the page clears the editor.

Can scripts run?

Yes, but only inside the isolated preview frame.

Related tools

More from Developer Tools

Related guides

Read more about this tool