Utils365

HTML entity encoder and decoder

Make text safe to put in HTML, or turn &-style codes back into readable characters.

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

Paste text, open a file, or drop one here

Common entities

Select one to copy it.

Next: URL encode / decode · Base64 encode / decode · HTML formatter

Report a problem with this tool

How to use HTML entities

  1. Pick encode or decode

    Encode turns special characters into entities; decode turns entities back into characters. Text that already has entities offers to decode.

  2. Choose how much to encode

    Escape just & < > and quotes, or every non-ASCII character too, written as names like &eacute; or numbers like &#233;.

  3. Copy the result

    Copy or download it. The common entities list below copies any reference, such as &nbsp; or &mdash;, with one click.

Why use Utils365

  • Safe escaping

    The minimal mode escapes exactly the five characters that can break HTML or attributes, and leaves everything else readable.

  • Decoded without running HTML

    Entities are decoded by a lookup table, never by putting your text into a page, so pasted markup or scripts can’t run.

  • Names and numbers

    All 252 HTML 4 named entities plus &apos; are decoded, along with every decimal and hex number reference.

Frequently asked questions

What are HTML entities?

Codes that stand for characters in HTML. They start with & and end with ;, such as &lt; for <, &amp; for &, or &#169; for ©. They let you show characters that would otherwise be read as markup.

Which characters must be escaped in HTML?

In text, & and < must be escaped as &amp; and &lt;. Inside attribute values, also escape the quote you used: &quot; for " and &#39; for '. Escaping > as &gt; is optional but common.

What’s the difference between &#233; and &eacute;?

Both show é. &#233; is a numeric reference (233 is its Unicode number) and works in HTML and XML; &eacute; is a named reference, easier to read but HTML only. &#xE9; is the same number in hex.

How do I write a non-breaking space?

Use &nbsp; or &#160;. It looks like a space but stops a line break there, as in 10&nbsp;kg. Too many in a row are a common cause of layout problems.

Why is &apos; not always used for apostrophes?

&apos; came from XML and wasn’t part of HTML 4, so some old browsers and email clients don’t know it. &#39; works everywhere, which is why the encoder uses it.

Which named entities can it decode?

All 252 from HTML 4, covering Latin-1 letters such as &ntilde;, symbols such as &euro; &trade; &rarr;, maths signs and Greek letters, plus &apos;. HTML5 adds rarer names; unknown ones are kept as they are and listed.

Do I need entities if my page is UTF-8?

Only for & < > and quotes. A UTF-8 page can contain é, € or emoji directly. Encoding all non-ASCII characters helps with old systems or emails that mangle UTF-8.