Skip to Content

Free HTML Entity Encoder / Decoder

Escape HTML for safe display, or decode &-style entities back to text.

  • Processed in your browser
  • 5 free uses a day, 50 with a free account
  • No watermark
  • Updated

Use the HTML Entity Encoder / Decoder

What is an HTML Entity Encoder / Decoder?

Showing HTML as text: in docs, comments, code examples, requires escaping the five special characters, or the browser interprets them as markup. Unescaped user input is also the root of XSS.

Encode turns < > & " ' into entities; decode reverses any named or numeric entity back to plain text.

Frequently asked questions

Which characters get encoded?

The five that break HTML: & < > " and '. That is sufficient for safe text embedding.

Does decode handle numeric entities?

Yes: named (&amp;), decimal (&#38;) and hex (&#x26;) all decode.

Is encoding enough to prevent XSS?

For text content, yes. Attribute, URL and script contexts each need their own escaping: context matters.

Is anything uploaded?

No: both directions run locally.

Need another pair of hands on the build?

BitsSolved writes React and Go, demos working software every week, and leaves the code in your repository. This tool platform is our own work running in production.

Tell us what you need built.

The first call is free and is mostly us asking questions. After it you get the scope in writing and a fixed quote for the first phase.

Based inTamil Nadu, India
First callFree, and mostly us asking questions