Code Formatter

Runs locally

Format JavaScript, CSS and HTML online: beautify indentation and pick your indent width — all locally.

Loading tool…

This tool runs locally in your browser — your content is never uploaded to a server.

How to use

  1. 1.Paste your JavaScript, CSS or HTML code into the input box.
  2. 2.Pick the language and indent width (2 spaces, 4 spaces or tab).
  3. 3.Click “Format” — the result updates in real time.
  4. 4.Click “Copy” to save; broken syntax is kept as-is with a notice.

FAQ

Related tools