HTML Entity Converter

Encode and decode HTML entities like &, <, and >.

Convert &, <, >, ", ' to entities

Output appears here

Common HTML Entities

& &amp;
< &lt;
> &gt;
" &quot;
' &#39;
© &copy;
® &reg;
&trade;

What is the Free HTML Entity Converter?

The free HTML Entity Converter encodes or decodes HTML special characters in three modes. Encode Basic converts only the five dangerous HTML characters (&, <, >, ", ') to their entity equivalents — ideal for safely inserting user input into HTML. Encode All converts every non-ASCII character to its numeric entity. Decode mode does the reverse, converting any HTML entities back to the original characters. Paste your text, select a mode, and the output appears instantly.

  • Encoding user-submitted text before inserting it into HTML to prevent XSS
  • Decoding HTML entities in scraped web content for further processing
  • Encoding special characters in XML or HTML attributes
  • Converting all non-ASCII characters to HTML entities for legacy email templates

How to Use the Free HTML Entity Converter

  1. 1 Paste your text (plain text or HTML-with-entities) into the input panel.
  2. 2 Select a conversion mode: Encode Basic, Encode All, or Decode.
  3. 3 The converted output appears instantly in the output panel.
  4. 4 Click Copy to copy the result to your clipboard.

Key Features

  • 🛡️
    Three conversion modes
    Encode Basic, Encode All (numeric), and Decode — covering all HTML entity use cases.
  • 🔐
    XSS-safe encoding
    Encode Basic targets the 5 critical characters that break HTML structure and enable injection attacks.
  • 🔢
    Full numeric encoding
    Encode All converts every non-ASCII character to a numeric HTML entity for strict ASCII-safe output.
  • Instant output
    Conversion result updates as you type or paste.
  • 🆓
    Free, browser-based
    No upload, no login — runs entirely in your browser.

Example Usage

Example Input
<div class="note">It's a "test" & more</div>
Example Output
&lt;div class=&quot;note&quot;&gt;It's a &quot;test&quot; &amp; more&lt;/div&gt;

Frequently Asked Questions about the Free HTML Entity Converter

What is the free HTML Entity Converter?
Encode and decode HTML entities like &amp;, &lt;, and &gt;.
Is the HTML Entity Converter free to use?
Yes, the HTML Entity Converter is completely free. No account, subscription, or signup is required — ever.
Does my data get uploaded anywhere?
No. The HTML Entity Converter runs entirely in your browser. Your data is never sent to any server.
Does it work offline?
Yes. Once the page has loaded, the tool works without an internet connection.
Which browsers are supported?
All modern browsers — Chrome, Firefox, Safari, and Edge. No plugins or extensions required.
What is the difference between Encode Basic and Encode All?
<strong>Encode Basic</strong> only escapes the 5 characters that break HTML structure (<code>&lt; &gt; &amp; " '</code>). <strong>Encode All</strong> converts every non-ASCII character to a numeric entity, which is useful for legacy systems that cannot handle Unicode.

Related Free Markdown & HTML Tools