개발 도구

HTML 포맷터

HTML 구조를 읽기 쉽게 정리합니다.

HTML 포맷터

UtilBrix 제공

HTML is displayed as text and never executed. Minify removes comments and safe inter-block whitespace while preserving text, inline spacing, and preformatted content.

입력 내용은 브라우저에 보관됩니다. 계정이 필요하지 않습니다.

자세한 방법과 예시는 영어로 제공됩니다.

Step-by-step instructions (English)

  1. Paste the HTML fragment or document as text.
  2. Choose Format and indentation, or Minify for compact markup.
  3. Run the tool and inspect the result before copying it into your project.

공식 및 방법

The HTML formatter uses an HTML-aware parser and printer. Two-space, four-space, and tab indentation are available. Meaningful whitespace and embedded language boundaries are respected. The result is shown as text and never inserted into the page as executable HTML.

실용 예시

A compact <main><h1>Hello</h1><p>Welcome</p></main> fragment can be formatted for reading while preserving its element structure.

When this tool is useful

Make a compact template easier to inspect or remove unnecessary formatting from a fragment. Keeping the result as text allows you to review markup without rendering an untrusted document inside the page.

Common mistakes and limitations

  • Formatting is not HTML sanitization and does not remove all unsafe behavior from markup.
  • Whitespace can affect inline text and preformatted content. Preview important changes in the application that consumes the output.

Practical questions about this tool (English)

Does the tool execute scripts in the pasted HTML?

No. The result is presented as text. Pasting a script tag does not run that script inside the formatter.

Will it fix every broken HTML document?

No. A parser may format a recoverable fragment or report an error, but it does not know your intended structure, accessibility requirements, or framework behavior.

관련 도구

UtilBrix 설치

홈 화면에서 도구를 바로 여세요.

  1. 브라우저 메뉴(⋮)를 여세요.
  2. ‘앱 설치’ 또는 ‘홈 화면에 추가’를 선택하세요.
  3. 확인하여 UtilBrix을 홈 화면에 추가하세요.

옵션이 없으면 Android의 Chrome에서 페이지를 여세요.

도구 검색

↑ ↓ Navigate · Enter Open · Esc Close