HTML Entity Converter
Encode and decode HTML entities like &, <, and >.
Convert &, <, >, ", ' to entities
Common HTML Entities
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 Paste your text (plain text or HTML-with-entities) into the input panel.
- 2 Select a conversion mode: Encode Basic, Encode All, or Decode.
- 3 The converted output appears instantly in the output panel.
- 4 Click Copy to copy the result to your clipboard.
Key Features
- 🛡️ Three conversion modesEncode Basic, Encode All (numeric), and Decode — covering all HTML entity use cases.
- 🔐 XSS-safe encodingEncode Basic targets the 5 critical characters that break HTML structure and enable injection attacks.
- 🔢 Full numeric encodingEncode All converts every non-ASCII character to a numeric HTML entity for strict ASCII-safe output.
- ⚡ Instant outputConversion result updates as you type or paste.
- 🆓 Free, browser-basedNo upload, no login — runs entirely in your browser.
Example Usage
<div class="note">It's a "test" & more</div>
<div class="note">It's a "test" & more</div>
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 &, <, and >. 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>< > & " '</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
Text to HTML Converter
Convert plain text to clean HTML with paragraph and line-break tags.
HTML to Markdown Converter
Convert HTML code to clean, readable Markdown format.
Markdown to HTML Converter
Convert Markdown text to HTML code ready to paste into a webpage.
Markdown Previewer
Write Markdown and see a live rendered preview instantly.
HTML to Plain Text Converter
Strip HTML tags and extract clean plain text from HTML content.
Markdown Table Generator
Build formatted Markdown tables from rows and columns with live preview.