Unknown named entity
Some rare entities (e.g., ∴) aren't in our table.
Fix: Use the numeric form &#NNN; for full coverage.
header • up to 320x100 / 728x90
Convert text to HTML entities or decode HTML entities back to text in a single bidirectional tool
Output will appear here...
content bottom • up to 300x250
sidebar • 160x600
Last reviewed:
HTML (HyperText Markup Language) is the core markup language for web pages, defining structure and content that browsers render.
HTML Entities <-> Text Converter is a bidirectional tool that encodes text to HTML-safe entities (&, <, >, ", ', plus &#NNN; for non-ASCII characters) or decodes named, numeric, and hex references back to plain text.
It handles the most common named entities (copy, reg, trade, nbsp, hellip, mdash, ndash, smart quotes, etc.) alongside decimal ({) and hex ({) references for the full Unicode range.
Tom & Jerry "©2026"
Tom & Jerry "©2026"
Some rare entities (e.g., ∴) aren't in our table.
Fix: Use the numeric form &#NNN; for full coverage.
Running encode twice breaks output.
Fix: Decode first, or verify the input wasn't already encoded.
Common ones: amp, lt, gt, quot, apos, nbsp, copy, reg, trade, hellip, mdash, ndash, lsquo, rsquo, ldquo, rdquo, bull, middot, deg, plusmn, times, divide.
Yes — non-ASCII characters are encoded as numeric references in the 'encode' direction.
Emoji are encoded as numeric references and decoded from numeric/hex references.
It emits ' rather than '. Use the XML tool for strict XML output.
No — the converter runs entirely in your browser.
Pair the HTML entities converter with XML, SQL, and JS escape tools for end-to-end encoding. You can also browse the full Encoders & Decoders category for more options.
Escape or unescape XML special characters and numeric entities with one click
Escape or unescape JavaScript string literals with backslash, quote, Unicode, and control-character handling
Escape or unescape SQL string literals using standard single-quote doubling
Escape HTML special characters
Remove HTML tags, scripts, and comments — returning clean plain text
Encode or decode URL strings
Encode text to HTML entities
Encode or decode HTML entities
Turn a list of ASCII / Unicode code points back into readable text
Convert each character in a string to its ASCII / Unicode code point
Unescape HTML entities
Encode/decode internationalized domain names