Home / Tools / Data and formats
HTML Beautifier & Minifier
Indent minified HTML or minify it for production.
Runs in your browserFree, no sign-upOpens .html, .htm, .svg
Loading tool…
How to use it
- Paste HTML or open a file.
- Choose Beautify or Minify.
- Copy or download the result.
About this tool
Beautify puts every element on its own line with proper indentation, which helps when reading minified pages or email templates. Minify removes comments and whitespace between tags. Script, style and pre blocks are kept as they are.
Your input is processed on your device. Nothing is sent to a server or stored.
Questions
Will minifying break my page?
It removes whitespace between tags, which can join inline elements like two links. Check the page after minifying.
Data and formats
All data and formatsMore tools like this
Data and formatsJSON Formatter & ValidatorFormat, validate, minify, stringify and parse JSON.Opens filesOpen →Data and formatsXML to JSON ConverterConvert XML to JSON and JSON back to XML.Opens filesOpen →Data and formatsCSV to JSON ConverterTurn CSV or TSV into JSON and JSON arrays into CSV.Opens filesOpen →Data and formatsYAML to JSON ConverterConvert YAML to JSON and JSON to YAML.Opens filesOpen →Data and formatsJSON to TypeScriptGenerate TypeScript interfaces from a JSON sample.Opens filesOpen →Data and formatsSQL FormatterFormat messy SQL into readable, indented queries.Opens filesOpen →Data and formatsMarkdown Table GeneratorTurn CSV or spreadsheet cells into a Markdown table.Opens filesOpen →Data and formatsQuery String to JSONTurn URL parameters into JSON and JSON into a query string.Open →