HTML entity encode and decode

Escape text for HTML, or decode entities.

Mode

0 lines · 0 characters

0 lines · 0 characters

Results update as you type.

Runs in your browser. Nothing uploaded.

How to encode or decode HTML entities

  1. Choose Encode to escape text for HTML, or Decode to turn entities back into characters.
  2. Paste your text into Input.
  3. Copy the result.

Common uses

  • Show code examples on a web page without the browser treating them as tags.
  • Fix text that appears with literal & or ' in it.
  • Prepare text for HTML emails or older systems that only accept ASCII.