HTML Entity Encoder & Decoder

Encode text as safe HTML entities or decode entities without executing the result.

Processing happens locally in your browser. Your files and inputs are not uploaded to our servers.

How to use HTML Entity Encoder & Decoder

  1. Enter plain text or encoded HTML entities.
  2. Choose Encode entities or Decode entities.
  3. Copy the plain-text result, swap it, or clear the editor.

What HTML Entity Encoder & Decoder does

HTML entities represent characters using named or numeric references. Encoding is useful when text must display markup characters literally; decoding returns plain text and never executes it.

Examples

Frequently asked questions

Is my input uploaded?

No. This tool processes its input locally in your browser. Normal page requests do not include the contents you enter or select.

Which characters are encoded?

The encoder handles HTML-significant characters such as ampersands, angle brackets, quotes, and apostrophes, while preserving Unicode text.

Will it work in every browser?

The tool uses modern browser APIs. Current Chromium, Firefox, and Safari releases provide the best support; the page displays a clear error when a required capability is unavailable.

Browse related tools