HTML Entities Encoder and Decoder Online — Escape Special Characters

Convert HTML entities

Entity Format
Encode Mode
Output

Encode special characters to HTML entities or decode existing entities back to plain text, with named-entity output (&, <, >, ", ' and more) so your markup stays safe and standards-compliant. A searchable entity palette lets you find the right entity by name or glyph, and live mode re-encodes as you type so you can verify the result before pasting into a CMS, RSS feed, or JSON-LD schema block. Use it to prevent XSS in user-generated content and comments, safely embed code snippets and sample XML in tutorials, escape ampersands and angle brackets in XML sitemaps and RSS feeds, and prepare JSON-LD structured data for Google rich results. The decoder also recovers text that has been double-encoded or pasted from a WYSIWYG editor that mangled quotes and dashes. Everything runs 100% locally in your browser — your text, code snippets, and content are never uploaded to a server.

Escape HTML safely for blogs, feeds, and schema markup

Convert <, >, &, and quotation marks into their named equivalents (&lt; &gt; &amp; &quot;) before pasting code samples, technical tutorials, or product names into a CMS — preventing broken markup, failed W3C validation, and XSS vectors from unescaped user content. RSS feeds, XML sitemaps, and JSON-LD schema blocks are particularly intolerant of stray ampersands, and a single one can invalidate an entire product feed in Google Search Console. The searchable reference table covers every named entity you will need.

Local entity lookup with a searchable reference table

Search the full named-entity reference by name or symbol to find the right code for any character — useful when you need &mdash; for an em-dash or &rsquo; for a curly apostrophe and do not want to memorize the list. Encoding and decoding run entirely in your browser, so proprietary copy, unpublished product descriptions, and internal documentation never touch a third-party service. Switch between named, decimal, and hex output formats with one toggle.

Frequently Asked Questions (FAQ)