All tools

HTML Entities

Encode / Decode

Encode and decode HTML entities

Characters like `<`, `>`, and `&` break HTML markup unless escaped into entities, and this tool handles that in both directions: encoding raw text before it goes into a template, or decoding a string like `&amp;copy; 2024` copied from page source to see what it actually renders as. It's a different kind of escaping from URL encoding, which targets URLs rather than markup, so keep them separate in your head even though both come up when sanitizing user input. A common symptom this tool helps diagnose is double-encoding, which shows up as literal `&amp;amp;` in your output and usually traces back to a templating engine that auto-escapes plus a manual encode step layered on top.

htmlentitiesencodedecode

How to use HTML Entities

  • 1.Paste text containing special characters (`<`, `&`, quotes) and encode it to get safe HTML entities before inserting it into a template.
  • 2.Decode a string like `&amp;copy; 2024` copied from page source to see what it actually renders as.
  • 3.Use it to debug why user-submitted text is displaying literal `&amp;` or `&lt;` instead of the intended characters — usually a sign of double-encoding.

Frequently asked questions

Is this the same as URL encoding?
No — HTML entity encoding escapes characters that have special meaning in HTML markup (like `<`, `>`, `&`), while URL encoding escapes characters for safe use in URLs. Use the URL Encode tool for the latter.
Does it support named entities and numeric entities?
Yes, both named entities (`&amp;`) and numeric character references (`&#38;` or `&#x26;`) are supported for encoding and decoding.
Is my text sent anywhere?
No, encoding and decoding happen entirely in your browser.
Why would I double-encode by accident?
This usually happens when a templating engine auto-escapes output and you also manually encode the string before passing it in — check your framework's auto-escaping behavior if you see `&amp;amp;` in your output.

Use via API, SDK, or MCP

cURL# Free: 1,000 req/day · Pro: 10,000 req/day
curl -X POST https://api.utilix.tech/v1/tools/html-entities \
  -H "Authorization: Bearer utx_live_..." \
  -H "Content-Type: application/json" \
  -d '{"input":"<div class=\"foo\">","mode":"encode"}'

Get an API key from your dashboard · Full API docs →