Choose encode or decode
Encode plain text for HTML or decode existing named and numeric references.
Escape HTML special characters or decode named and numeric character references in your browser.
Your result will appear here
HTML Entity Encoder / Decoder is a free online developer tool from GigaTools. Escape HTML special characters or decode named and numeric character references in your browser. It runs entirely in your web browser, so nothing is uploaded and it works on any device without installing software.
How it works
Encode plain text for HTML or decode existing named and numeric references.
Optionally encode non-ASCII characters as decimal references. Decoding makes one pass.
Copy the plain output or download it as text. Decoded markup is displayed as text, never executed.
FAQ
1. Choose encode or decode: Encode plain text for HTML or decode existing named and numeric references. 2. Paste your text: Optionally encode non-ASCII characters as decimal references. Decoding makes one pass. 3. Review and copy: Copy the plain output or download it as text. Decoded markup is displayed as text, never executed.
No. HTML entities are for HTML text and quoted attributes. Use the URL Encoder / Decoder for URL components.
No. It only decodes references. Use HTML to Text Converter to remove markup. Unknown references remain unchanged; numeric references follow browser parsing rules.
No. Encoding is context-specific. This output is not a sanitizer for HTML, JavaScript, CSS or URL values.
Keep going
Validate, pretty-print, or minify JSON.
Encode text to Base64 or decode it back.
Create MD5, SHA-1, SHA-256 and SHA-512 digests.
Generate random RFC 4122 version 4 UUIDs.
Decode a JSON Web Token header and payload.
Test a regular expression against sample text.