HTML Entity Converter
Encode and decode HTML entities like &, <, and >.
Convert &, <, >, ", ' to entities
Common HTML Entities
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 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 Free HTML Entity Converter
- What is the free HTML Entity Converter?
- Encode and decode HTML entities like &, <, and >.
- 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>< > & " '</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
Convert plain text to clean HTML with paragraph and line-break tags.
HTML to Markdown
Convert HTML code to clean, readable Markdown format.
Markdown to HTML
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
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.