Development and data formats

HTML entities encoder and decoder

Escape special characters to HTML entities (< > & ") or turn entities back into text. Optional encoding of non-ASCII characters.

Everything runs in your browser. Nothing is sent to our servers.

How it works

To show HTML code as text on a page, or insert user text safely, the characters < > & " and ' must become entities. Paste the text and choose encode or decode.

Turn on "Also encode non-ASCII characters" to convert accented letters and symbols to numeric entities (&#241;), useful for emails and systems that do not handle UTF-8 well.

Frequently asked questions

What is an HTML entity?

A way to write a character as text, such as &amp; for & or &lt; for <. The browser displays it as the original character.

Does escaping HTML protect against XSS?

Correctly escaping output is the main defense against XSS in HTML, but each context (attributes, JavaScript, URLs) has its own rules.

Need a custom tool for your business?

Tell us about your case and in 30 minutes we'll give you a clear diagnosis: what's going on, what to do first and what it might cost. No strings attached.

Get a free assessment Message us on WhatsApp

Reply within 24 business hours