HTML Entity Encoder & Decoder
Escape text so it displays safely inside HTML, or turn entities like & and € back into readable characters.
Free · No sign-up · Files stay on your device
How to use HTML Entity Encoder / Decoder
- 1Choose Encode or Decode.
- 2Paste your text or HTML.
- 3Copy the result.
Features
- Encode & < > " and '
- Optionally encode all non-ASCII characters
- Decode named, decimal and hex entities
- Instant results
- Runs locally
Why encode HTML?
Characters like <, > and & have special meaning in HTML. To show them as text, for example in a code sample or a user comment, they must be written as <, > and &. Encoding user input is also a basic defence against cross-site scripting (XSS).
Frequently asked questions
Which entities can be decoded?
All of them: named entities like © and , decimal like © and hex like ©.
When should I encode non-ASCII characters?
Only for old systems that do not support UTF-8. Modern pages can use characters like é and € directly.
Is this the same as URL encoding?
No. URL encoding (%20) is for URLs. Use our URL Encoder for that.
Related tools
URL EncodeURL-encode text online for free. Convert spaces and special characters to percent-encoding (%20) for query strings and links. Full UTF-8 support.HTML FormatterFormat and beautify HTML code online for free. Make messy or minified HTML, templates and email code readable with clean indentation.Markdown to HTMLConvert Markdown to HTML online with a live preview. Supports GitHub-flavoured Markdown: tables, task lists, code blocks and strikethrough. Copy or download.