Esta página ainda não foi traduzida para o português, por isso aparece em inglês.

Online HTML, CSS & JavaScript Editor

A lightweight code playground: edit HTML, CSS and JavaScript side by side, see the result instantly, read console output and download your page as one HTML file.

Atualizado em
Template
Console

Your code is saved in this browser automatically. The preview runs in a sandboxed frame without access to this site.

Seus dados nunca saem do seu computador. Todo o processamento acontece localmente no navegador.

Como usar: Online HTML Editor

  1. Write markup in HTML, styles in CSS and scripts in JavaScript.
  2. The preview updates as you type (turn off Auto-run for heavy scripts and press Run or Ctrl+Enter).
  3. Check console.log output and errors below the preview.
  4. Click Download .html to save everything as one file.

A quick HTML playground

Sometimes you just need to try a snippet: check how a CSS property behaves, debug a layout, prototype a component or test code from a tutorial. This editor gives you the three classic panes and a live preview without accounts, projects or build steps. Your work is stored in your browser (local storage), so it is still there when you come back.

How the preview is isolated

The result runs in an <iframe sandbox> without the allow-same-origin permission. That gives the page its own unique origin: scripts can run, use alerts and forms, but cannot read this site’s cookies or storage. It is the same approach used by CodePen and JSFiddle.

Tips

  • Tab inserts two spaces instead of leaving the editor.
  • Load libraries from a CDN with a normal tag in the HTML pane, for example <script src="https://cdn.jsdelivr.net/npm/…"></script>.
  • Runtime errors and rejected promises appear in the console panel with their line number.
  • The downloaded file contains your HTML, CSS and JS in one document — ready to open locally or upload.

Beyond the playground

Clean up code with the HTML formatter, CSS formatter and JavaScript formatter, or shrink it for production with the HTML minifier and JavaScript minifier.

Também pesquisado como: html viewer, html editor online, live html preview, online html preview, html css preview, css preview online, preview html code, render html online.

Ferramentas que combinam com: Online HTML Editor

  • Markdown to HTML — Write or paste Markdown and get clean HTML instantly — with a sanitized live preview, GitHub-flavored tables, task lists and fenced code blocks.
  • CSS Minifier — Paste a stylesheet to shrink it instantly.
  • SQL Formatter — Paste a query — or a whole migration — and get readable SQL with one clause per line, aligned joins and consistent keyword case, using the grammar of your database.
  • Testador de Expressões Regulares — Digite um padrão e veja as correspondências serem destacadas em tempo real no seu texto de teste.

Perguntas frequentes

Is my code saved?
Yes, automatically in this browser’s local storage. It is not uploaded; clear site data or click a template to start over.
Can I use external libraries?
Yes — add <script> or <link> tags pointing to a CDN in the HTML pane.
Is it safe to run untrusted code here?
The preview runs in a sandboxed iframe with its own origin, so it cannot access this site. It still runs in your browser, so only run code you are comfortable executing.
Does it support TypeScript, SCSS or React JSX?
No — the preview runs plain HTML, CSS and JavaScript. Compile other languages first.
Posso instalar o Online HTML Editor como um aplicativo da web e usá-lo offline?
Sim. O Online HTML Editor é um aplicativo da web instalável (PWA) — instalado a partir do seu navegador, não baixado de uma loja de aplicativos. Clique em “Instalar aplicativo” na parte superior desta página no Chrome ou no Edge (Windows, macOS, Linux, ChromeOS) ou, no Android, use “Compartilhar” → “Adicionar à tela inicial” no iPhone e no iPad, ou “Arquivo” → “Adicionar ao Dock” no Safari 17+ em um Mac. Em seguida, ela se abre em uma janela própria com seu próprio ícone e, como é executada inteiramente no seu navegador, continua funcionando offline. O Firefox no desktop não permite a instalação de aplicativos da web. Como funciona a instalação.

Ferramentas relacionadas