Formatters & Code
HTML Formatter
Gratis HTML formatter en minifier. Verfraai met Prettier's standaard inspringing en attribuut-wrapping, of comprimeer HTML tot één regel voor productie. In-browser, niets wordt geüpload.
Redactionele opmerking
Understanding · Indented HTML, sane defaults.
Dit uitgebreide hoofdstuk is momenteel alleen in het Engels beschikbaar. De conversietool hierboven werkt in jouw taal; de lange uitleg is nog niet vertaald.
Veelgestelde vragen
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.
Mensen zoeken ook naar
Gerelateerde tools
More in this room.
- HTML MinifierComprimeer witruimte, verwijder opmerkingen — slanke HTML.
- JSON Formatter & ValidatorVerfraai, comprimeer en valideer JSON — gratis, geen aanmelding.
- SQL FormatterVerfraai en laat lelijke SQL-query's inspringen.
- XML Formatter & ValidatorVerfraai, comprimeer en valideer XML — direct.
- CSS FormatterVerfraai en comprimeer CSS stylesheets.
- JavaScript / TypeScript FormatterPrettier-geformatteerde JS & TS, in de browser.