Skip to content
← Back

HTML Entity Encoder Enhanced - Online Encode/Decode

Text
Runs locally · Not uploaded

Free online HTML entity encoder/decoder supporting 244 named entities, with decimal/hexadecimal/named entity conversion.

Was this result helpful?

For local tools, open DevTools → Network and search your input — it should not appear in requests.

Usage Guide

Encode or decode HTML entities locally (named and numeric) for templates and CMS debugging — not a full XSS sanitizer.

1. Encode or decode

Paste text, pick direction, copy and verify.

  1. Paste.
  2. Encode/decode.
  3. Verify.

2. Common uses

Show code in HTML, email markup, undo & stacks — still not complete XSS defense.

3. Double encoding

Decode one layer at a time.

  • One layer.
  • Compare expected.
  • Not the only defense.

4. Scope

Enhanced entity helper — use a real sanitizer for untrusted HTML.

5. Invisible chars

Follow up with unicode tools if output still looks odd.

6. Handoff

State encode vs decode and how many layers.

FAQ

Yes: encoding and decoding run entirely on this page and nothing is sent out. Local processing isn't zero risk, though — screen shares, recordings, and downloaded files can still spread the content further, so use judgment with sensitive material.

The enhanced version covers 244 named entities (Latin, Greek, math symbols, currency, punctuation, and more), with three encode modes — special chars only, all encodable chars, named entities first — and two decode modes: decode all and named entities only.

Yes. When encoding, non-named characters fall back to a named entity or a decimal &#NNN; form; when decoding, decimal &#NNN;, hexadecimal &#xNN;, and named &name; entities are all recognized.

Decode one layer at a time and compare against the expected text after each pass — &amp;lt; takes two rounds to get back to <, and rushing it in one go tends to over-decode. When handing off, say how many layers you decoded so a colleague doesn't re-encode it in a template and ship literal entity text.

It is the first step in placing user content into HTML, not a complete defense: attribute and URL contexts follow extra rules, so don't treat it as your only measure. Typical uses include showing code snippets in docs, preparing HTML email, and turning &amp; back into & to read the real URL.

Zero-width characters or a BOM may be at play. Move to a Unicode tool to dig further, and turn on whitespace visibility in your editor to spot them. Reproduce with a minimal sample first to tell an input problem from an option-combination problem before switching tools.

Related Tools

Related Articles