HTML Encoder/Decoder
Escape text for safe embedding in HTML, or decode HTML entities back to text.
Output
Result appears here.
How it works
Escape converts &, <, >, and " into their named HTML entities, and ' into the numeric ' (valid in every HTML version), so text can be safely embedded in HTML. Decode reverses all five, plus ' and numeric character references (A and A); an entity it doesn't recognize is left as literal text rather than guessed at. Both run entirely in your browser.
Example
Escape
<b>Bold & "quoted"</b><b>Bold & "quoted"</b>FAQ
- Is my text uploaded anywhere?
- No. Escaping and decoding happen entirely in your browser — nothing you paste ever leaves your machine.
- What happens if I decode something that is not a real HTML entity?
- It is left unchanged as literal text rather than an error — this tool does not guess at unrecognized entities.
- Does decode support numeric character references?
- Yes — both decimal (A) and hexadecimal (A) references decode to their character.