<strong>Free & fast</strong>
5 entities changed
- Mode
- encode
- Input characters
- 28
- Changed positions
- 43
Entity encoding helps display code examples as text. It is not a complete sanitizer for untrusted HTML.
Use this free HTML entity encoder and decoder to turn HTML characters into display-safe entity text or convert entity codes back to readable text.
<strong>Free & fast</strong>
5 entities changed
Entity encoding helps display code examples as text. It is not a complete sanitizer for untrusted HTML.
Show HTML code examples inside a blog post, guide, or documentation page.
Decode copied entity text so it is easier to read.
Escape short snippets before placing them in visible HTML text.
Check whether a string changed after encoding or decoding.
<strong>Free & fast</strong>
<strong>Tools</strong>
Encoded quote and ampersand text
Plain-language answers about when to use the tool, what it does with your inputs, what to double-check, and how privacy works.
Use it when your task matches one of these common needs: Show HTML code examples inside a blog post, guide, or documentation page. Decode copied entity text so it is easier to read. It works best when you already know the values, dates, units, or settings the page asks for.
In plain language: Encode mode replaces &, <, >, quotes, and apostrophes with HTML entities. Decode mode converts supported named and numeric entities back to characters. The examples on the page are there so you can compare your inputs with a filled-out calculation before copying the answer.
The main inputs are the values, text, dates, units, or settings the tool needs before it can work. Read each field label carefully, keep units consistent, and compare your entry with the examples if the answer looks strange.
Read the output next to your original input. If the tool changes format, units, encoding, spacing, or capitalization, compare a small sample before copying the whole result into another app.
Entity encoding is useful for displaying code examples as text, but it is not a complete sanitizer for untrusted HTML or script content. Also check that you used the right unit, date, scale, or mode because small input changes can change the result.
No. The calculator runs in your browser tab. Your recent answers stay only on the page while you use it, and they are not sent to a server.