Skip to content

HTML Entity Encoder / Decoder

Escape HTML special characters to entities or decode entities back to readable text.

100% freeNo sign-upInstant resultsWorks on mobile
Loading HTML Entity Encoder / Decoder…

How to use the HTML Entity Encoder / Decoder

  1. Paste HTML or text.
  2. Choose encode, encode all non-ASCII, or decode.
  3. Copy the result.

How it works

Encoding & < > ” ‘ prevents text from being interpreted as HTML, which helps prevent XSS when showing user content.

Why use this html entity encoder / decoder?

  • Instant: results update as you type — no page reloads.
  • Private: everything runs in your browser; nothing you enter is stored or uploaded.
  • Free forever: no sign-up, no limits, works on phone, tablet and desktop.

Frequently asked questions

What is &amp;?

The entity for an ampersand (&).

Why encode HTML?

To display code as text or safely show user input.

Does decoding run scripts?

No, decoding only produces plain text.