HTML Entity Encoder & Decoder
Convert special characters to HTML entities and back
How it works
- 1Paste your text or HTML
Drop text with special characters, or HTML with entities.
- 2Pick encode or decode
Encode turns < into <. Decode turns < back into <.
- 3Copy the result
Copy the escaped or unescaped output with one click.
About HTML Entity Encoder & Decoder
Free online HTML entity encoder and decoder. Convert <, >, &, quotes, and other special characters to their HTML entity form (<, >, &) or decode entities back to plain text. Supports named entities and numeric references. HTML Entity Encoder & Decoder on 712 Tools runs entirely inside your browser using modern JavaScript APIs - no server ever sees your data. That means instant results, complete privacy, and no upload limits.
Whether you need to convert special characters to html entities and back for a debugging session, a quick sanity check, or a production incident, this tool is free to use as many times as you need. There are no watermarks, no sign-up, and no ads inside the tool itself.
Frequently asked questions
Which characters get encoded?
The five HTML5 essentials - <, >, &, ", ' - plus non-breaking space and any character above U+007F on request.
Does it handle numeric entities like —?
Yes. Both named entities (—) and decimal/hex numeric references (— / —) decode correctly.
Should I encode ' as '?
' is HTML5-valid but not HTML4 - some older mail clients render it literally. This tool encodes to ' instead for maximum compatibility.
Is my text uploaded?
No. All encoding runs locally in your browser.
Related tools
Base64 Encoder / Decoder
Encode text or files to Base64 and back
URL Encoder / Decoder
Percent-encode or decode URL components instantly
JWT Decoder
Decode JSON Web Tokens and inspect claims
Image to Base64
Convert any image to a Base64 data URI - for inline CSS or HTML
Word Counter
Count words, characters, sentences, paragraphs, reading time
Case Converter
Convert text to UPPERCASE, lowercase, camelCase, snake_case, kebab-case, and more