HTML formatter
Turn minified or messy HTML into clean, well-indented code.
Everything runs in your browser. Nothing you type or paste is sent to a server.
How to use the HTML formatter
- 1
Paste your HTML code.
- 2
Choose the indentation.
- 3
Copy or download the formatted HTML.
About this tool
Great for reviewing templates, code copied from the browser inspector or HTML emails.
The code is only reformatted as text: nothing runs and no resources load.
Frequently asked questions
Will it change how my page works?
No. Only spaces and line breaks between tags change.
Does it format embedded CSS and JavaScript?
Yes, <style> and <script> contents are indented too.
Related tools
- Images
Favicon Generator
Create favicon.ico and every icon your site needs from an image or letters.
- Images
Image to Base64
Turn an image into Base64 or a data URI for HTML, CSS or JSON.
- Images
Base64 to Image
Decode Base64 or a data URI and download the image.
- Images
Image Color Picker
Get the HEX, RGB or HSL code of any point in an image.