Toolstia / Online HTML, CSS and JavaScript editor

HTML, CSS and JavaScript editor with live preview

Try an idea or test a snippet without making files or signing in. Type HTML, CSS and JavaScript in three boxes and the result appears below as you type. When you are happy, download everything as one HTML file.

The preview runs in a sandbox with no access to this site. Your code stays in your browser.

How it works

  1. Edit the HTML, CSS and JavaScript boxes.
  2. Watch the preview update, or press Run.
  3. Download the page as an .html file.

How the preview works

Your three boxes are combined into one page and shown in a frame. The CSS goes in the head and the script runs at the end of the body, so it can reach your elements.

Sandboxed

The frame has no access to this website or its storage. Scripts you write can run, but they cannot read anything from the page around them.

Automatic or manual

Automatic running waits a moment after you stop typing. Turn it off and press Run if your script is slow, or if it should only run once.

Not saved

Nothing is stored. Download the file or copy your code before you close the tab.

Questions

Can I use libraries like jQuery?

Add a script tag with the library address in the HTML box if the network allows it.

Why does my script not run?

Check the browser console for errors. The script runs after your HTML, so elements exist when it starts.

Is anything uploaded?

No. Your code stays in your browser and is never sent anywhere.