HTML Formatter
☆ favoriteFormat and minify HTML markup.
How to Use
- Paste HTML into the box above.
- Click Format to indent and pretty-print the markup.
- Click Minify to remove whitespace and compress the output.
- Use the dropdown to choose 2 spaces, 4 spaces, or tab indentation.
Developer Tools (56)
Formatters & Minifiers (12)
Code to ImageJSON FormatterHTML FormatterCSS FormatterJS FormatterSQL FormatterXML FormatterHTML MinifierCSS MinifierJS MinifierJavaScript ObfuscatorSVG Optimizer
encode & decode (7)
Base64 Encode/DecodeURL Encode/DecodeHTML Entity EncoderJWT DecoderJWT BuilderHash GeneratorUUID Generator
JSON (4)
Converters (6)
Data Format ConverterPixels to REMTimestamp ConverterHTML to JSX ConverterSVG to JSX ConvertercURL to Code Converter
testing & inspection (13)
Regex TesterREST API TesterHTML Live PreviewCode Diff CheckerKeyboard Event ViewerCSV ViewerHTML Table ExtractorScreen RulerScreen Resolution CheckerUser Agent ParserColor Contrast CheckerCSS Specificity CalculatorCSS Cursors Reference
seo & web (8)
Open Graph PreviewSERP Preview ToolSchema Markup GeneratorTable Generator.htaccess GeneratorCron Expression GeneratorHTTP Status CodesChmod Calculator
network & validation (6)