ok.OK UtilityA LITTLE EVERYDAY MAGIC

HTML Entity Generator

Encode HTML special characters or decode supported common and numeric HTML entities.

Make it your own

How to use HTML Entity Generator

Escape five HTML special characters, or decode the supported common named and numeric character references. This is a text conversion tool rather than a complete HTML parser or sanitiser.

  1. Paste the text or HTML-entity text to convert.
  2. Choose Encode special characters or Decode common/numeric entities.
  3. Select Generate and inspect the converted text before using it in its destination context.

Example: Encoding <p>A & B</p> produces &lt;p&gt;A &amp; B&lt;/p&gt;.

How it works: Encoding replaces &, <, >, double quote and apostrophe. Decoding recognises amp, lt, gt, quot, apos, nbsp and valid decimal/hexadecimal numeric references; other named entities remain unchanged.

Understanding the result

Encoding is suitable for displaying the five covered special characters as text in appropriate HTML contexts. Decoding handles only the documented named entities and valid numeric references.

A calculation you can check

Encoding <b>A & B</b> gives &lt;b&gt;A &amp; B&lt;/b&gt;. It does not parse or remove an HTML script.

What to check before using the answer

  • Escaping for HTML text is not universal sanitization for CSS, URLs, JavaScript or every attribute context. A decoded string must not be inserted as trusted markup.

Guidance updated . Methods and corrections

Are my inputs saved?

Your calculation values and selected files are not stored. Recent and saved tools keep tool identifiers; your market preference keeps only its country code in this browser.

Can I switch to a related tool?

Use the grouped tool selector above the form. Each tool has its own URL, and your browser’s Back button returns to the previous tool.

Search the complete directory ESC to close
Your everyday toolkit