HTML Entities Encoder/Decoder

Paste text to encode it as HTML entities or paste encoded HTML to decode it back to readable characters.

Mode

Encoding scope

Output format

Input

Encoded Output

Summary

Paste text to encode it as HTML entities or paste encoded HTML to decode it back to readable characters.

How it works

  1. Paste or type your text into the Input box.
  2. Choose a mode: Encode to convert characters to entities, or Decode to convert entities back to characters.
  3. Select which characters to encode (All special characters, Reserved only, Non-ASCII, or All printable).
  4. Pick an output format: Named entities, Numeric decimal, or Hex.
  5. Click Encode or Decode to process, then copy or download the result.

Use cases

  • Safely embedding user-supplied text inside HTML pages to prevent XSS
  • Encoding email HTML templates that must survive aggressive spam filters
  • Decoding HTML source snippets to read the actual text content

Frequently Asked Questions

Last updated: 2026-06-09 · Reviewed by Nham Vu