Source code
HTML Format
Paste code and choose an operation

HTML / CSS / JS / SQL форматер

Paste minified or badly indented code, choose the language and format it into a readable structure with one click. It works the other way too: collapse code onto a single line to shrink payloads or squeeze it into a config value.

Formatting happens in the browser and your source is never uploaded, so it is safe for internal code snippets.

Features

How to use

  1. Paste the code you want to process on the left.
  2. Choose the language on the right: HTML, CSS, JavaScript, SQL or XML.
  3. Pick an indentation style and click Format or Minify.
  4. Review the output in the result panel and click Copy.

FAQ

Does formatting change how my code behaves?

For HTML, CSS, XML and SQL, formatting only adjusts whitespace and leaves semantics untouched. JavaScript deserves more care because of automatic semicolon insertion: joining two lines or moving a line break can change statement boundaries in a few rare constructs, so give the result a quick read afterwards.

Can minified code be restored?

Whitespace-only minification can be undone by formatting again, but optimisations such as variable renaming and dead code elimination are irreversible. This tool only removes whitespace and never renames identifiers.

Which SQL dialects does the formatter support?

It applies generic keyword casing and indentation, which handles the common syntax of MySQL, PostgreSQL and SQL Server. Dialect-specific constructs, such as certain stored procedure bodies, may not lay out perfectly.

Is my code uploaded?

No. All formatting is done locally in the browser and your code is never sent to a server.

Does it format Go code?

Not yet. Go ships with the official gofmt / goimports formatters, which are normally run in your editor or CI pipeline — see the Go command cheat sheet for usage, and our blog for a detailed comparison of the two tools.

Related tools & reading

Обратная связь

Этот сайт — только фронтенд: без бэкенда и учётных записей. Обратная связь — через GitHub Issues, Discussions или e-mail.

Вставьте это в issue или e-mail, чтобы помочь найти проблему; сюда не входит то, что вы ввели

Also: Посмотреть существующую обратную связь · Обратная связь по e-mail (без аккаунта GitHub):278975598@qq.com