HTML Encoder / Decoder

Escape HTML special characters or decode entities back. Useful for safely embedding user input or debugging encoded markup.

Enter input above to see the result.

What is this for?

HTML reserves five characters with structural meaning — &, <, >, ", '. Putting any of those into a page as content requires escaping them as HTML entities so the browser doesn't interpret them as markup. This tool flips both directions: encode raw text into safe entities, or decode scraped HTML back to plain text.

When to use it

Common gotchas