Encoding and decoding
HTML Entity Encoder and Decoder
Turn unsafe literal characters into plain-text HTML entities without rendering the input.
Processed locally. Your input and output are never uploaded.
Tool overview
Which characters must be escaped in HTML
Encode ampersands, brackets, quotes, non-ASCII characters, or non-breaking spaces as HTML entities. Decoding returns plain text and never injects decoded content as live HTML.
Escape text for HTML examples and templates
- Clean pasted work data before another tool uses it
- Inspect a browser-local conversion before copying it
- Prepare examples for documentation or support notes
Encode or decode plain text safely
- Paste or type the input.
- Choose the processing options that match the source.
- Run the tool and review the result.
- Copy or download the output.
Reserved characters, quotes, NBSP, and semicolons
- Options are explicit so destructive behavior is visible before processing.
- Input and output stay in separate editors.
- Examples load realistic settings for the tool.
Escape angle brackets without rendering HTML
Before
Tom & Jerry <script>
After
Tom & Jerry <script>
Entities are not sanitization
- Entity decoding is not HTML sanitization.
- Unknown malformed entities are preserved.
- Decoded output remains plain text.
Browse all encoding and decoding tools →
Questions
HTML Entity Encoder and Decoder FAQ
Does HTML Entity Encoder and Decoder upload my input?
No. Processed locally. Your input and output are never uploaded.
Can HTML Entity Encoder and Decoder change meaning?
Only options described on the page are applied; review output before using it in a workflow.
What happens with invalid input?
The tool reports an error and leaves the source text available in the input editor.