Tools

Home
HTML BeautifierCSS BeautifierJS BeautifierHTML to JSXMarkdown Editor

Live HTML Editor

Write HTML, CSS, and JavaScript with instant live preview — like a mini CodePen

Your files never leave your browser
1
1
1
Preview
Console 0
Ready·Ctrl+Enter: Run · Ctrl+S: Download
Fullscreen Preview

Write HTML, CSS, and JavaScript in separate tabs and see the result update instantly in a live preview panel — no saving files, no refreshing, no setup. A built-in console catches your logs and errors right below the preview, so you can skip opening DevTools for quick checks.

And everything runs in your browser. Nothing gets uploaded.

How It Works

Write Code
➡
Auto-Combine
➡
Live Preview

You type HTML, CSS, or JavaScript into separate tabs. After a short pause (about 300ms), the editor combines everything into a single document and renders it inside a sandboxed iframe. The iframe updates automatically — no button to press, no page to reload. Console output from your JavaScript shows up in a panel below the preview so you can debug without opening DevTools.

Examples

Quick Button Styling

You want to test a CSS hover effect before adding it to your project.

HTML TAB
<button class="cta">Sign Up</button>
CSS TAB
.cta { padding: 12px 24px; background: #2563eb; color: white; border: none; border-radius: 8px; cursor: pointer; } .cta:hover { background: #1d4ed8; transform: scale(1.05); }

Debugging a Fetch Request

You're learning the Fetch API and need to see what the response object actually looks like.

JS TAB
fetch('https://jsonplaceholder.typicode.com/posts/1') .then(res => res.json()) .then(data => console.log(data)) .catch(err => console.error(err));
CONSOLE OUTPUT
{ userId: 1, id: 1, title: "sunt aut facere...", body: "quia et suscipit..." }

Building a Responsive Card Layout

A designer hands you a mockup with three cards that stack on mobile. You want to prototype it fast before committing to your main codebase.

HTML TAB
<div class="grid"> <div class="card">Plan A</div> <div class="card">Plan B</div> <div class="card">Plan C</div> </div>
CSS TAB
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 1rem; } .card { padding: 2rem; background: #f1f5f9; border-radius: 12px; text-align: center; font-weight: 600; }

Who Uses This

👨‍💻 Front-End Developers

Prototype components and test CSS tweaks without spinning up a dev server.

🎓 Students

Follow along with tutorials and see results immediately — no setup, no installs.

🎨 Designers

Verify that their CSS matches the mockup before handing off to developers.

✍️ Technical Writers

Create working code samples for documentation and blog posts.

Common Mistakes

Putting CSS in the HTML tab inside <style> tags

It still works, but then you have styles in two places. Use the CSS tab instead — it gets injected into a <style> block automatically, so your code stays organized.

Wondering why console.log output is missing

Check the Console panel below the preview. It captures log, warn, and error calls from your JavaScript. If it is collapsed, click the Console tab to expand it.

Closing the tab before downloading

There is no autosave. Your code lives only in the editor's memory. Hit Ctrl+S (or the Download button) to save a .html file to your computer before closing.

Technical Details

Frequently Asked Questions

Is this a full replacement for VS Code or CodePen?

Not quite. It doesn't have extensions, multi-file projects, or Git integration. But for quick experiments, CSS testing, and learning exercises, it does the job without any setup. Think of it as a scratchpad, not an IDE.

Can I use external libraries like Bootstrap or jQuery?

Yes. Add a <link> or <script> tag pointing to a CDN in your HTML tab. The preview iframe will load the external resource as long as your browser isn't blocking it. Most CDN-hosted libraries work fine.

Does the editor save my code automatically?

No. Everything stays in your browser's memory while the tab is open. Once you close or refresh the tab, it is gone. Use the download button or Ctrl+S to save a local .html file.

Why does my JavaScript run twice?

Each keystroke (after the debounce) rebuilds the entire preview, which re-runs your script. If you're adding event listeners, they can stack up. This editor handles it by reloading the iframe fresh each time, but if you see doubled output, check whether your code is appending to the DOM on every run.

Is my code private?

Yes. Nothing is sent to a server. The preview runs in a sandboxed iframe for safety. Your code is not stored anywhere — close the tab and it is gone unless you download it first.

Share:
\n\n' +html+'\n' +(js?' \n\n' +html+'\n' +(js?'