HTML Encoding, Decoding & Formatting Tools
HTML encoding converts characters like <, >, and & into entities so they display safely in web pages. Decode entities back to plain text, format markup with readable indentation, or compress insignificant whitespace between tags — essential for templates, snippets, and debugging.
HTML Tools
-
HTML Entity Encoder
Escape text as HTML entities for safe text display. Minimal mode escapes <, >, &, quotes, and apostrophes; full mode also encodes non-ASCII characters. This encodes text — it does not sanitize untrusted HTML or make markup safe to render.
-
HTML Entity Decoder
Convert HTML character entities like & and < back to plain text. This decodes entities in one pass — &lt; becomes <, not <. HTML tags in the input are stripped and a notice is shown above output.
-
HTML Formatter
Pretty-print HTML with consistent indentation. Improves readability but does not validate or repair malformed markup. Paste minified or messy markup and click Run.
-
HTML Whitespace Compressor
Remove HTML comments and extra spacing between tags. Quoted attribute values are preserved; unquoted values may be normalized. This compresses whitespace only — it does not optimize attributes, remove optional tags, or minify inline CSS/JS the way build tools do.
-
HTML to Plain Text
Extract visible text from HTML. Script, style, and noscript blocks are skipped. Line breaks are added for block elements and <br>. Hidden elements (e.g. display:none) may still contribute text.