Paste HTML
LocalThis runs in your browser. Nothing you paste here is sent anywhere.
HTML -> FORMATTED · Local tool
HTML formatter
Beautify minified or messy HTML into something readable.
Last updated
01 / Your device
the file stays here
02 / Browser memory
the work runs locally
03 / Back to you
saved on this device
When you would use this
Situations, not settings.
- Minified markup you have to read
- View source on most sites returns one long line. Formatting makes the structure visible.
- A template that has drifted out of shape
- Void tags and inline scripts are handled properly rather than being indented into nonsense.
- An email template someone sent you
- Table based HTML is hard enough to follow before the indentation is gone.
How it works / no cloud
A conversion engine, not an upload form.
filetity parses the HTML in your browser and prints it back indented. It knows the void elements that never close, and it treats the contents of script and style as text, so a comparison like a < b inside a script is not mistaken for the start of a tag.
- Offline ready
- Installable app
- No file limit queue
Straight answers
No accordion. Nothing hidden.
- Is it free?
- Yes, with no watermark and no page limit.
- Does it need an account?
- No. There is no account system.
- Is my file processed on my device?
- Yes. The file is read by your browser and never uploaded. There is no server to send it to.
- What formats are supported?
- HTML in, including minified. Formatted HTML out, or minified back down.
- What are the limits?
- Formats the markup you give it and does not rewrite it. It will not close your unclosed tags or correct invalid nesting.
- Does it work on mobile?
- Yes, on any modern mobile browser. Large files are limited by the memory the phone gives the browser.
- Does it work offline?
- Yes, after you have used it once. Your browser keeps what the tool needs, so it then works with no network connection.
- Will it fix my broken HTML?
- No, and that is on purpose. It formats what you give it rather than guessing at what you meant, because a formatter that silently adds closing tags can change how the page renders while looking like it only changed the whitespace.
- Does it handle minified HTML from a built site?
- Yes. That is the main reason people open one. Paste the whole thing in and it comes back with one element per line and real indentation.
- What happens to my inline JavaScript and CSS?
- It is passed through untouched. The contents of script and style are treated as text, not markup, so nothing inside them is reindented or misread as a tag.
- Why does <br> not get a closing tag?
- Because in HTML it never has one. br, img, input, meta and the rest of the void elements are complete on their own. Adding a closing tag would be invalid HTML, so the formatter leaves them as they are.
- Why does a short element like <title>Home</title> stay on one line?
- Because splitting it across three lines would add whitespace inside the element, and in HTML a browser renders that whitespace. An element holding nothing but text is kept on its line, and so is an empty pair like <p></p>; one with child elements is opened up.
Keep working locally
7 available · more coming
- XML formatterFormat, beautify and validate XML, with real error positions.
- JSON Formatter and ValidatorFormat, beautify, validate and read JSON, and find the line that broke it.
- URL Decoder and EncoderTurn %20 and %C3%A9 back into readable text, or encode text for a URL.
- Markdown to HTMLConvert Markdown to HTML, as a fragment or a whole styled page.
- HTML to MarkdownConvert HTML into clean Markdown, without the scripts and styles.
- SQL FormatterFormat SQL with proper clause indentation and keyword casing.