Developer
HTML Entity Encode/Decode
Convert special characters to safe HTML entities and back. Encode &, <, >, " and ' or optionally every non-ASCII character to numeric references, and decode named, decimal and hex entities — all locally in your browser.
Examples
Input · Special characters become safe entities.
Tom and Jerry
Output
Tom and Jerry
How to use HTML Entity Encode/Decode
Enter your text
Paste the text or HTML you want to convert into the input box.
Pick a direction
Switch between Encode and Decode, and toggle 'encode all non-ASCII' if needed.
Grab the output
Use Copy or Download to save the converted result.
Why use this tool
Escapes the five core HTML characters safely
Optionally encodes every non-ASCII character to numeric entities
Decodes named, decimal and hex references
Runs entirely in your browser — nothing is uploaded
Frequently asked questions
Yes. Decoding handles common named entities plus any decimal or hex numeric reference.
It converts every character above code point 127 into a numeric entity, which is useful for strict ASCII-only contexts.
Discussion
Share feedback or ask a question about this tool.
Comments are stored to a moderated queue via the API.