HTML Entity Encoder / Decoder
Encode special characters as HTML entities (< → <) or decode entities back to text.
What are HTML entities?
Characters such as <, >, & and quotes have special meaning in HTML. To show them as text you use entities like <, >, & and ". Proper escaping keeps your layout intact and prevents XSS vulnerabilities.
Encoding options
- Encode only the special HTML characters
- Convert every non-ASCII character (é, ç, €, emoji) to a numeric entity
- Encode everything
Decoding
Turns named and numeric entities such as &, ', ' and ü back into readable characters. Ideal for email templates, CMS content and text from databases. Processing happens in your browser.
How to use HTML Entity Encoder / Decoder
- Paste text or HTML entities.
- Choose encode or decode.
- Set the encoding scope.
- Copy the result.
Why use this tool?
Makes it easy for web developers to produce safe HTML output and fix text that looks garbled.
FAQ
Which characters must be escaped in HTML?
At least & < > and, inside attributes, " and '. On UTF-8 pages the rest is optional.
Do I need to encode accented characters?
Not on UTF-8 pages. Numeric entities can be safer for old email clients or systems with other encodings.
What is ?
A non-breaking space; it keeps two words from being split at a line end.
Related tools
URL Encoder / Decoder
Encode or decode URLs and query parameters with percent-encoding.
Open toolBase64 Encoder / Decoder
Encode text to Base64 and decode it back with full UTF-8 support, including URL-safe Base64.
Open toolUnicode Escape / Unescape
Convert text to \uXXXX, \u{…}, Python, CSS, HTML or U+ escape sequences and back.
Open toolRemove HTML Tags
Strip HTML tags and get clean plain text with line breaks preserved for paragraphs, lists and headings.
Open tool