Encode
Before
Tom & Jerry
After
Tom & Jerry
Escape `<`, `&`, and quotes for safe HTML—or decode `&lt;` sequences scraped from pages back to normal characters.
HTML Entity Converter
Encode special characters or decode HTML entities.
Your text stays in your browser — nothing is uploaded.
Raw HTML snippet
<div>"Hello & goodbye"</div>
Encoded entities
<div>"Hello & goodbye"</div>
Before
Tom & Jerry
After
Tom & Jerry
Before
<strong>
After
<strong>
Before
"hi"
After
"hi"
Before
©
After
©
HTML Entity Converter transforms reserved markup characters into named or numeric entities during encoding and restores them during decoding. Numeric forms like `A` and hex `A` decode to Unicode characters, which helps when cleaning CMS exports or preparing documentation examples.
Escaping user comments before rendering in templates
Decoding scraped product descriptions with entity soup
Preparing code samples for technical blog posts
Debugging double-encoding in email templates
Choose Encode Entities or Decode Entities.
Paste text or entity strings into the input.
Review converted output for ampersands, angle b…
Swap direction to verify round-trip accuracy.
Escaping user comments before rendering in temp…
Decoding scraped product descriptions with enti…
Preparing code samples for technical blog posts
Debugging double-encoding in email templates
All processing runs locally in your browser. Results may vary with edge-case characters or very large inputs.
At minimum <, >, &, quotes, and often non-ASCII characters depending on context.
Processing is local; HTML strings never leave your browser.
Yes—decimal and hexadecimal numeric references are supported.
Ampersands in existing entities are escaped to avoid corrupt sequences.