HTML Entity Encode / Decode
Escape text to HTML entities (& < > " ') or decode named and numeric HTML entities back to plain text. Free and private, right in your browser.
Convert text to and from HTML entities. Turn `<`, `>`, `&`, and quotes into safe `<`, `>`, `&` codes for embedding in HTML, or decode entity-laden text (like scraped page source or an RSS feed) back into readable characters. Everything happens in your browser, so nothing you paste is sent anywhere.
How to use it
- Paste your text or HTML markup into the input box
- Choose Encode to escape special characters or Decode to convert entities back to text
- Copy the converted result
Frequently asked questions
- What's the difference between encoding and escaping named entities like & vs numeric ones like &?
- Named entities (&, <, ©) are easier to read and are supported for common characters, while numeric entities (& or &) work for any Unicode character, including ones without a named equivalent. This tool uses named entities where they exist and falls back to numeric ones for everything else.
- Why does my text show &amp; instead of &?
- That happens when text gets encoded twice. Once by this tool and once already by whatever produced the original text. Paste your original raw text once through Decode to unwind it, or check the source to make sure you're not double-encoding.
- Will decoding entities let HTML tags execute in my browser?
- No. Decoding here just converts entities back to plain text characters in a text box; it doesn't insert anything into the page DOM, so no script or markup ever runs.
- 1
Nothing is uploaded
The file never leaves your device. There is no server to send it to, so there is nothing to leak, log, or subpoena.
- 2
No signup, no limits
No account, no email, no daily cap, no watermark, and no paid tier waiting behind the third file.
- 3
Works offline
Load the page once and it keeps working with the network off, because all the work was always happening locally.