HTML Entity Decoder

Turn entities like & and < back into the characters they stand for, for text copied from page source or a feed.

HTML Entity Decoder

Developer Tools

Runs locally in your browser.

About the HTML Entity Decoder

When getting user content from a secure database or third-party API, you will find that special characters have been replaced with HTML entities (like & for & or " for "). While this data sanitization is critical for preventing Cross-Site Scripting (XSS) attacks on web pages, it's completely unreadable outside of web environments like mobile applications or data analysis software.

This HTML Entity Decoder can unescape this sanitization and instantly return the text to readable characters, preserving formatting. Database exports, API payloads and other text you paste are processed on your device.

Key Features of HTML Entity Decoder

  • Instant UnescapingPaste your sanitized strings and instantly reverse the encoding process. It rapidly translates hundreds of standard HTML entities back to standard symbols, quotation marks and brackets.
  • Mixed-Content ParsingThe decoder intelligently handles mixed content. If you paste a string containing both standard HTML tags and encoded entities (like <p>Tom &amp; Jerry</p>), the tool will decode the &amp; while leaving the structural <p> tags completely intact.
  • 100% Local ProcessingDecode sensitive application data with absolute peace of mind. The decoding engine runs natively via client-side JavaScript so your proprietary API responses and user data never leave your device.
  • Rapid Export OptionsOnce your text is successfully decoded, use the dedicated "Copy" button to instantly grab the clean text, or "Download" to save the output as a local file for your project.

How to Use HTML Entity Decoder

  1. Paste the text or API response containing the escaped entities into the main "HTML entities to decode" input field.
  2. Click the "Decode" button to instantly convert the entities back to standard text characters.
  3. Read the output to check that the text now looks right.
  4. Use the "Copy" or "Download" buttons to export your decoded string, and "Clear" to reset.

HTML Entity Decoder Examples

Text copied from HTML source, turned back into the characters it stands for.

Input
Fish &amp; Chips &lt;small&gt;
Result
Fish & Chips <small>

HTML Entity Decoder — Frequently Asked Questions

Why do APIs return HTML entities instead of normal text?
Security is the main reason. If an API receives user input (like a forum comment) and stores it, it will often encode any special characters before saving to the database. If that data is later shown on a page, any injected script appears as plain text instead of running.
Is it safe to decode HTML entities?
Yes, decoding the entities back to text is totally safe for reading, analyzing or displaying text in a non-browser environment (like iOS or Android app). You should never decode untrusted entities and render them directly onto a web browser's Document Object Model (DOM), however.
What is the difference between encoding and decoding?
Encoding (or escaping) is when you convert a special character into a safe HTML entity (turning < into &lt;). Decoding (or unescaping) is the reverse process, taking the safe entity (&lt;) and turning it back into <.