ToolBento guide
How to encode and decode HTML entities
Turn special HTML characters into safe entities, or decode common entities back to readable text for snippets, docs, and CMS cleanup.
Recommended tool
Open the matching ToolBento utility →Use entities when text has to survive HTML
Characters such as <, >, &, quotation marks, and apostrophes can mean something special inside HTML. If you want to show a code snippet, a product name with an ampersand, or a copied tag as visible text instead of markup, encoding those characters as HTML entities keeps the text from being interpreted as part of the page.
What the ToolBento encoder changes
ToolBento's HTML Entity Encoder/Decoder focuses on the common characters that cause everyday markup problems. It encodes ampersands, angle brackets, double quotes, single quotes, and similar text into entities such as &, <, >, ", and '. It also shows a decoded version when the input already contains those common entities.
What to paste into the input
Open ToolBento's HTML Entity Encoder/Decoder and use the HTML/text input field. Paste the snippet, CMS text, email template line, documentation example, or encoded string you want to inspect. The input can be plain text with special characters, a short HTML fragment, or text that already contains entities.
Press Encode / Decode for both versions
After the HTML/text input looks right, press Encode / Decode. The result has an Encoded section and a Decoded section, so you can copy the version that fits your task. Use the encoded output when you need special characters to display literally, and use the decoded output when you need readable text for review or editing.
Check code examples before publishing
Entity encoding is especially useful for blog posts, docs, help-center articles, and support replies that show tags such as <strong>, <script>, or <a href="..."> as examples. Encode the snippet, paste the result into your editor, then preview the page to confirm readers see the example text rather than a broken or active tag.
Know the limits of a simple decoder
This tool is meant for quick everyday entity cleanup, not for sanitizing unsafe HTML or auditing security issues. Decoding text can make hidden markup readable, but it does not prove that markup is safe to render. If the text comes from users, comments, forms, or third-party feeds, still use a proper sanitizer in your application before displaying it as HTML.
Small mistakes to avoid
Do not repeatedly encode the same text unless you really want nested entities such as &amp;. Also be careful when copying from a CMS preview, because the visible text may already be decoded even if the stored source uses entities. If the output looks doubled, go back to the original source and run Encode / Decode once from that version.