Skip to content

Limitations

  • It is a tolerant tokenizer, not a full HTML parser: badly broken markup is indented as well as possible, not repaired.
  • Inline-only elements are kept on one line, so very long lines stay long.
  • Script content is re-indented but not reformatted.

Privacy

Files are opened on your device and never uploaded. Previews block scripts, forms and remote images (which can be tracking pixels).

About the Email HTML Formatter

Pretty-print email HTML with 2 or 4 spaces or tabs. Structure is indented, inline text stays together, and conditional comments and pre blocks are untouched.

How to use it

Examples

Questions

Will formatting change how the email looks?
It only changes whitespace between structural tags. Text, inline elements, conditional comments and preformatted content are kept as written.
Is formatting twice the same as once?
Yes. Formatting already formatted HTML gives the same result.

Free and runs in your browser. Sign in only if you want to save your work.