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;

Free browser-based tool · Runs 100% on your device · Last updated

What is the 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 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 HTML Entity Converter

What is the HTML Entity Converter?
The HTML Entity Converter is a free online tool that lets you encode and decode HTML entities like &amp;, &lt;, and &gt;. It runs entirely in your browser, so there is nothing to install and nothing is uploaded to a server.
Is the HTML Entity Converter free?
Yes — the HTML Entity Converter is completely free, with no account, subscription, signup, or usage limits.
Is my data uploaded or stored?
No. The HTML Entity Converter processes everything locally in your browser. Your input is never uploaded, saved, or shared with any server.
Does the HTML Entity Converter work offline?
Yes. Once the page has finished loading, the HTML Entity Converter works without an internet connection.
Which browsers does the HTML Entity Converter work in?
The HTML Entity Converter works in all modern browsers, including Chrome, Firefox, Safari, and Edge — no plugins or extensions needed.
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