A free browser tool to encode and decode HTML entities. Convert special characters like <, >, &, and " to named, decimal, or hex HTML entities — and back. 100% client-side.

HTML Entity Encoder is a free, browser-based developer tool that converts special characters to HTML entities and back. Paste your text, choose a format, and copy the safe output — no setup, no signup, no data leaving your browser.
Every developer who writes HTML templates, email HTML, or CMS content eventually runs into the same problem: special characters like <, >, &, and " must be escaped to be safely embedded in HTML. Without encoding, these characters break markup or, worse, open XSS vulnerabilities.
The alternatives — searching MDN for the right entity name, referencing a cheat sheet, or relying on incomplete framework escaping — are slow and error-prone. And decoding encoded HTML back to readable text is equally tedious when debugging templates or email clients.
Drop any text containing special characters (for encoding) or any HTML with entity sequences (for decoding) into the input panel.
Encode mode converts your text to HTML entities. Choose from three output formats:
< → <, & → &, © → ©< → <, & → &< → <, & → &Decode mode converts any mix of named, decimal, or hex entities back to plain text.
One click copies the output to your clipboard. Paste directly into your code, template, or CMS.
innerHTML, no security concernsArray.from() and codePointAt() for full Unicode support including emojiinnerHTML tricks, making it safe even with malicious inputYou're building Handlebars, Jinja2, or Blade templates. User-supplied content goes into HTML attributes. Use the encoder to correctly escape dynamic values before embedding them in attribute strings.
Email clients have notoriously inconsistent HTML support. Encoding non-ASCII characters and special symbols as named entities ensures they render correctly in Gmail, Outlook, Apple Mail, and others without relying on charset declarations.
WordPress, Contentful, and many other CMSes interpret < and > literally in certain fields. Encoding them as entities lets you insert code samples or formatted text into body copy without triggering HTML parsing.
Auditing a codebase for XSS vulnerabilities? Paste user-input strings through the encoder to verify that your output escaping is equivalent — and to generate correctly encoded test payloads.
Found double-encoded text like &lt; in your logs or database? Paste it into decode mode to unravel the layers and understand what went wrong upstream.
Writing API documentation or developer guides that include HTML code samples? Use the tool to generate the correctly encoded versions of your examples for embedding in Markdown or MDX files.
HTML Entity Encoder reduces friction in day-to-day web development:
Try it now: html-entity-encoder.tools.jagodana.com
The client needed a robust developer tools solution that could scale with their growing user base while maintaining a seamless user experience across all devices.
We built a modern application using HTML and Encoding, focusing on performance, accessibility, and a delightful user experience.
Category
Developer Tools
Technologies
Date
April 2026
More work in Developer Tools