UtilityGrid
🔍

How to Use HTML Entity Encoder / Decoder

Convert characters like <, >, & and quotes into safe HTML entities to prevent markup injection, or decode entities back into their original characters. Decoding uses the browser's own parser, so it understands every named and numeric entity.

Open the HTML Entity Encoder / Decoder tool →

What is HTML Entity Encoder / Decoder?

Escape HTML special characters to entities, or decode named and numeric entities back to text. It's completely free, needs no sign-up, and runs entirely in your browser — so it's fast and private.

How to use HTML Entity Encoder / Decoder

  1. Open the HTML Entity Encoder / Decoder tool.
  2. Paste or type your input.
  3. Set any options provided.
  4. Copy the result. Everything runs in your browser — nothing is uploaded.

Frequently asked questions

When should I HTML-encode text?

Whenever you place literal or untrusted text into HTML. Encoding characters like <, >, & and quotes stops them being parsed as markup, which prevents broken layouts and cross-site-scripting bugs.

Does it handle named and numeric entities?

Yes. Decoding recognises named entities such as &amp; and &copy;, plus both decimal (&#169;) and hexadecimal (&#xA9;) numeric references.

Is my text uploaded anywhere?

No. Encoding and decoding run entirely in your browser — nothing is transmitted or stored.

More Developer Tools