HTML Entity Encoder / Decoder

Encode text to HTML entities or decode them back.

Advertisement
Advertisement

About the HTML Entity Encoder / Decoder

HTML Entity Encoder converts characters that have special meaning in HTML — such as <, >, &, and quotes — into their safe entity equivalents, and decodes entities back to normal characters. Encoding lets you show code or symbols on a web page without breaking the markup. It all runs in your browser.

How to use it

  1. Paste your text or HTML.
  2. Click 'Encode' to escape special characters or 'Decode' to reverse it.
  3. Copy the output.
Advertisement

Frequently asked questions

Which characters get encoded?

The five that matter most for safe HTML: &, <, >, double quote and single quote. That covers the cases that break markup or enable injection.

Is my input uploaded?

No. Encoding and decoding happen locally in your browser.

Related tools

Advertisement