Formatowanie i Kodowanie
Formatator HTML
Darmowy formatator i minifikator HTML. Upiększaj z domyślnym wcięciem Prettier i zawijaniem atrybutów, lub zwijaj HTML do pojedynczej linii dla produkcji. W przeglądarce, nic nie jest przesyłane.
Notka redakcyjna
Understanding · Indented HTML, sane defaults.
Ten szczegółowy rozdział jest obecnie dostępny tylko w języku angielskim. Narzędzie konwersji powyżej działa w Twoim języku; długi artykuł objaśniający nie został jeszcze przetłumaczony.
Często zadawane pytania
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.
Ludzie wyszukują również
Powiązane narzędzia
More in this room.
- Minifikator HTMLZwiń białe znaki, usuń komentarze — odchudzony HTML.
- Formatowanie i walidacja JSONUpiększ, minifikuj i waliduj JSON – za darmo, bez rejestracji.
- Formatator SQLUpiększ i wcięcie brzydkich zapytań SQL.
- Formatowanie i walidacja XMLUpiększ, minifikuj i waliduj XML – natychmiast.
- Formatator CSSUpiększ i minifikuj arkusze stylów CSS.
- Formatator JavaScript / TypeScriptJS i TS w formacie Prettier, w przeglądarce.