Skip to tool
FreeToolsKit

HTML Entities Converter

Encode text to HTML entities and decode entities back to text, in your browser.

FreeNo uploadNo sign-up

Last updated:

Advertisement

Tool

Encode · 7 entities

36 characters · 7 entities

Encoded text

Tom & Jerry <b>"Café"</b> — 50% off!

The characters & < > " and ' always become named entities (&#39; for the apostrophe); non-ASCII characters become decimal numeric references only with the option on.

Common HTML entities

Select any entity to copy its code.

Your files never leave your device - processing happens in your browser.

Related tools: URL Encoder / Decoder · Base64 Encoder / Decoder · JSON Formatter

An HTML entity is a short code, such as &amp; for an ampersand, that represents a character in HTML without the browser treating it as markup. FreeToolsKit's HTML Entities Converter turns text into entities — & < > " and ' become named entities, and accented or non-Latin characters become numeric references with the option on — and decodes named, decimal and hexadecimal entities back to readable text. Everything runs in your browser — pasted text is never uploaded.

How do you convert HTML entities?

  1. Choose Encode or Decode at the top of the tool.
  2. Type or paste your text into the box — a sample sentence is already filled in.
  3. When encoding, tick “Also encode non-ASCII characters” to turn accented and non-Latin characters into numeric references too.
  4. Read the converted result, which appears instantly.
  5. Press Copy to take the result, or Download .txt to save it; press Reset to return to the sample.
  6. Select any entry in the Common HTML entities table to copy that entity's code.

What is the HTML Entities Converter used for?

  • Escaping an ampersand or angle bracket before pasting a code snippet into a blog post or CMS.
  • Turning a sentence with quotes and accented characters into entities for an HTML email template.
  • Decoding a block of entity-encoded text copied from a page's source back into readable characters.
  • Checking what &mdash; or &#x2014; in a piece of HTML actually stands for.
  • Preparing text with special characters for a page where the character set cannot be changed.

Frequently asked questions

Is the HTML entities converter free?

Yes. The tool is completely free with no sign-up and no usage cap. Convert as much text as you like, as often as you like.

Is my text uploaded anywhere?

No. Encoding and decoding run entirely in your browser. Nothing you paste is sent to a server, stored or logged — closing the tab removes it completely.

What is the difference between named and numeric entities?

A named entity uses a word, such as &amp; for an ampersand or &copy; for ©, while a numeric entity uses the character's code point, such as &#38; (decimal) or &#x26; (hexadecimal) for the same ampersand. Named entities are easier to read; numeric references work for every character, including ones with no name.

Why does decoding fail on an unknown entity?

Decoding fails when a reference is not a real HTML entity, for example &foo;, or when a numeric reference is malformed, such as &#xZZ; or a code point above 1114111. The tool names the entity and its position so you can fix it. A reference also needs its trailing semicolon — &amp without one is left as plain text.

Which characters are encoded?

Encoding always turns the five reserved HTML characters into named entities: & becomes &amp;, < becomes &lt;, > becomes &gt;, " becomes &quot; and ' becomes &#39;. With the “Also encode non-ASCII characters” option on, every character above code point 127, such as é or —, becomes a decimal numeric reference like &#233;.

Advertisement

Related tools

Last updated:

  • Free forever
  • Files stay on your device
  • No sign-up