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·Discussion·이메일로 받습니다.

이슈나 이메일에 붙여넣으면 문제 파악에 도움이 되며, 입력 내용은 포함되지 않습니다

Also: 기존 피드백 보기 · 이메일 피드백(GitHub 계정 불필요):278975598@qq.com