BTC $64,505.00 −1.17% ETH $1,815.96 −0.77% USDT $0.9994 −0.02% BNB $590.51 −1.08% USDC $0.9997 −0.01% XRP $0.9557 −1.37% SOL $71.75 −0.99% TRX $0.3050 +0.39% FIGR_HELOC $1.04 — STETH $1,796.44 −1.86% HYPE $68.70 +2.84% ZEC $906.37 +0.33% XMR $493.53 −1.00% DOGE $0.0588 −1.13% BTC $64,505.00 −1.17% ETH $1,815.96 −0.77% USDT $0.9994 −0.02% BNB $590.51 −1.08% USDC $0.9997 −0.01% XRP $0.9557 −1.37% SOL $71.75 −0.99% TRX $0.3050 +0.39% FIGR_HELOC $1.04 — STETH $1,796.44 −1.86% HYPE $68.70 +2.84% ZEC $906.37 +0.33% XMR $493.53 −1.00% DOGE $0.0588 −1.13%

HTML Entity Encoder and Decoder

Make text safe to show inside HTML, or read text full of & and ' codes.

  • 100% Free
  • No sign-up
  • Runs in your browser

What is the HTML Entity Encoder and Decoder?

Characters like <, > and & have special meaning in HTML. To show them as text, for example in a code example or a user comment, they must be written as entities such as &lt; and &amp;. Forgetting this breaks pages and can open security holes.

Encode text for safe use in HTML, or decode entities back into readable characters. You can also encode every non-ASCII character if an old system needs it.

Features

Both directions

Encode or decode in one place.

All characters option

Turn every non-ASCII character into an entity.

How to use the HTML Entity Encoder and Decoder

  1. 1

    Paste text or HTML.

  2. 2

    Pick encode or decode.

  3. 3

    Copy the result.

Who it is for

Code examples

Show HTML code inside a blog post.

Cleaning data

Turn &amp;quot; mess back into normal text.

Tips for better results

  • Encoding output in your own code (templates) is the real protection against XSS; this tool is for one-off text.

Questions people ask

Is it free?

Yes, free and private.

When do I need it?

Whenever you show user text or code samples inside a web page.

Trustpilot

What our customers say

4.8 / 5Trustpilot rating
FREE BITCOIN TOOLS

Stuck Bitcoin transaction?

Paste your TXID, see where it stands, and give it a free push. No signup, no wallet access.

Try the free accelerator
  • Free
  • No signup
  • Live status