HTML Entity Encoder/Decoder
Escape or unescape HTML entities like &, <, and " in one click.
Input
Output
About HTML Entity Encoder/Decoder
Encode raw text into safe HTML entities for safely embedding user content in HTML, or decode entity-encoded text back to plain characters.
Uses the browser's own escaping, not a custom approximation
Encoding works by setting the text as a DOM element's content and reading back its rendered HTML — which means the browser itself performs the escaping, the same way it would for any text on the page. The output matches what the browser would actually render, rather than a hand-written set of substitution rules that could drift from real browser behavior.
How to use it
Paste text and encode it into HTML entities, or paste entity-encoded text and decode it back to plain characters.
Use cases
Safely embed user-submitted content in an HTML page without it breaking the markup. Decode entity-encoded text you're inspecting from a page's source. Check what a string of entities actually represents.
Limitations
Encodes and decodes text content — it doesn't validate or process full HTML documents beyond the entity conversion itself.
Does this send my text anywhere?
No — encoding and decoding happen entirely in your browser.
Is this actually free?
Yes.