All utilities

HTML entity encoder

Escape HTML text and decode common and numeric character references.

Use the codeJavaScript

Loading code…

Encode HTML entities and decode text references

Escape HTML text and decode common and numeric character references.

How to use it

  1. Choose Encode or Decode, paste your text and run.
  2. Copy or download the result before leaving the page.

What to know

Encodes ampersands, angle brackets and quotes. Decodes amp, lt, gt, quot, apos and numeric Unicode references, not every named HTML entity. Output is plain text, never executed. Input limit: 1 MiB.

Need to protect a message? Try text encryption ↗