HTML Entity Encoder / Decoder
Encode text to HTML entities or decode them back.
Advertisement
Advertisement
About the HTML Entity Encoder / Decoder
HTML Entity Encoder converts characters that have special meaning in HTML — such as <, >, &, and quotes — into their safe entity equivalents, and decodes entities back to normal characters. Encoding lets you show code or symbols on a web page without breaking the markup. It all runs in your browser.
How to use it
- Paste your text or HTML.
- Click 'Encode' to escape special characters or 'Decode' to reverse it.
- Copy the output.
Advertisement
Frequently asked questions
Which characters get encoded?
The five that matter most for safe HTML: &, <, >, double quote and single quote. That covers the cases that break markup or enable injection.
Is my input uploaded?
No. Encoding and decoding happen locally in your browser.
Related tools
JSON Formatter & Validator
Beautify, minify and validate JSON in your browser.
Developer ToolsBase64 Encoder & Decoder
Encode text to Base64 or decode it back instantly.
Developer ToolsURL Encoder & Decoder
Percent-encode or decode URLs and query parameters.
Developer ToolsUUID Generator
Generate random version 4 UUIDs in bulk.
Developer ToolsAdvertisement