Live Code Tester

Write and preview web code instantly in your browser.

Preview
Preview not running.

Live preview

The preview updates as you type, with no page reload.

Safe sandbox

Code runs in a sandbox with no access to this site's cookies or storage. Endless loops are stopped where the browser allows it.

Console output

Iterate through complex JS functions and CSS animations with instant feedback.

Live Code Tester FAQ

Can I use libraries from a CDN?

Yes. You can link external CSS or JS libraries by adding <link> or <script> tags directly into the HTML editor block for rapid prototyping.

Is it safe to run code here?

The tester uses strict sandbox rules on the preview frame, so your scripts cannot read this site’s cookies or storage or change the page around it.

How to use the Live Code Tester

  1. Write or paste HTML, CSS and JavaScript in the tabs.
  2. Run the code.
  3. Check the live preview and adjust.

Questions and answers

Is my code saved?

No. The code stays in this page and is not sent or stored.

What happens with an endless loop?

The tester stops code that runs too long, so the page stays usable.