Skip to content

포매터 및 코드

HTML 포맷터

무료 HTML 포맷터 및 축소기. Prettier의 기본 들여쓰기 및 속성 줄 바꿈으로 보기 좋게 만들거나, 프로덕션용으로 HTML을 한 줄로 축소합니다. 브라우저 내에서 실행되며 아무것도 업로드되지 않습니다.

Runs in your browser
HTML formatter & validator
lines: 0chars: 0size: 0 B
HTML · UTF-8 · 2-space indent

편집자 노트

Understanding · Indented HTML, sane defaults.

이 심층 챕터는 현재 영어로만 제공됩니다. 위의 변환 도구는 귀하의 언어로 작동하지만, 긴 설명 글은 아직 번역되지 않았습니다.

자주 묻는 질문

Quick answers.

Which HTML formatter is this?

Prettier's HTML parser with default settings — 2-space indent, 80-column target, attribute per line when the tag overflows. The minifier is a lightweight whitespace collapser that preserves <pre>, <script>, <style> and <textarea> content byte-for-byte.

Will it break my <pre>, <script>, or <style> blocks?

No — those blocks are protected from whitespace collapse during minification. Their content is extracted, the rest of the document is minified, then the blocks are restored verbatim.

Does it work on HTML fragments, not just full documents?

Yes. Paste a <div>...</div> or any partial tree; Prettier handles it the same way it handles a full document.

Is my HTML uploaded?

No — formatting and minification run entirely in your browser. Safe for sensitive markup.

사람들이 다음도 검색합니다.

관련 도구

More in this room.

모두 보기 포매터 및 코드