Encode or decode URL components and query parameters.
Beautify, format, and indent HTML markup with standard tag nesting.
Minify HTML markup by removing comments and unneeded whitespace.
Strip punctuation, symbols, and non-alphanumeric characters from text.
Convert HTML markup (headings, links, tables, lists) to clean Markdown.
Characters like <, >, &, and quotation marks can break HTML markup or open the door to injection issues if they aren't escaped properly, and this html entity encoder decoder converts them to safe named or numeric entities in an instant. Front-end developers sanitizing user input, content editors pasting text into a CMS, and students learning HTML can convert in either direction — turning raw text into &-style entities, or decoding entity strings back into readable characters. The whole conversion happens locally in your browser, so pasted content, including anything sensitive, never touches a server. There's no signup and no limit on how much text you can process. Enter your text below to see the escaped or unescaped result right away.
Characters like <, >, and & have special meaning in HTML, so they must be encoded as entities to display correctly and to prevent them from being interpreted as markup.
Named entities like & are easier to read, while numeric entities like & or & work even in contexts that don't recognize the named form.
Encoding user-supplied text into HTML entities is one part of preventing cross-site scripting, but it should be combined with proper server-side sanitization and context-aware escaping.
Yes, paste any text containing HTML entities and the tool will convert it back to its original readable characters.
Yes, it correctly converts Unicode characters, including emoji and accented letters, into their numeric HTML entity equivalents.
No, all encoding and decoding runs locally in your browser using JavaScript, so nothing is sent to a server.
JSON Escape Characters Explained
JSON escape characters explained: the nine valid escape sequences, escaping quotes and backslashes, \uXXXX and emoji surrogate pairs, and nested JSON strings.
The Complete Guide to Text Encoding on the Web
A complete text encoding guide: how Unicode and UTF-8 store characters as bytes, plus Base64, percent-encoding, HTML entities, hex, and how to fix garbled text.