Formatierer & Code
HTML Formatter
Kostenloser HTML Formatter und Minifier. Verschönern Sie mit den Standardeinstellungen von Prettier für Einrückung und Attributumbruch, oder kollabieren Sie HTML auf eine einzige Zeile für die Produktion. Im Browser, nichts wird hochgeladen.
Anmerkung der Redaktion
Understanding · Indented HTML, sane defaults.
Dieses ausführliche Kapitel ist derzeit nur auf Englisch verfügbar. Das Konvertierungstool oben funktioniert in Ihrer Sprache; der lange Erklärtext wurde noch nicht übersetzt.
Häufig gestellte Fragen
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.
Andere suchten auch nach
Verwandte Tools
More in this room.
- HTML MinifierKomprimiert Leerzeichen, entfernt Kommentare — schlankes HTML.
- JSON Formatter & ValidatorJSON verschönern, minimieren und validieren — kostenlos, ohne Anmeldung.
- SQL FormatterHässliche SQL-Abfragen verschönern und einrücken.
- XML Formatter & ValidatorXML verschönern, minimieren und validieren — sofort.
- CSS FormatterCSS-Stylesheets verschönern und minimieren.
- JavaScript / TypeScript FormatterPrettier-formatiertes JS & TS, im Browser.