S
SnapUtilsPro
Encoding

HTML Entity Encoder / Decoder

Encode special characters to named or numeric HTML entities, and decode entities back to text with a safe parser (no innerHTML). A focused companion to the URL encoder when you need richer entity control.

Runs entirely in your browser. Your data never leaves this device.

  • Named entities
  • Numeric entities
  • Safe decode
  • Encode special chars
  • Complements URL tool
Workspace
Client-side ยท No upload

How it works

  1. Paste text or entity-encoded HTML.
  2. Encode special characters to entities or decode entities back to characters.
  3. Choose named entities or numeric (decimal/hex) output as needed.

Key features

  • Named entities
  • Numeric entities
  • Safe decode
  • Encode special chars
  • Complements URL tool

FAQ

How is this different from the URL encoder?

URL Encoder includes a basic HTML mode; this tool focuses on richer entity encode/decode options.

Safe decode?

Decoding uses a safe map/regex path without assigning untrusted HTML to innerHTML.

What about  ?

Common named entities including nbsp are supported.

XSS risk?

Encoding helps embed text safely; always sanitize before injecting HTML into a page.

Related developer tools