What it does
Converts text to HTML entities and back. Encode replaces the five HTML-reserved characters — &, <, >, " and ' — with their entities so the text can be dropped into a page and shown literally instead of being parsed as markup. The result updates as you type and is ready to copy.
Why reserved characters matter
If you paste a < b && c > d straight into HTML, the browser tries to read < b ... as a tag and the text breaks or disappears. Encoding first turns it into a < b && c > d, which displays exactly as written. The ampersand must be encoded too, otherwise a sequence like & in your text would itself be decoded by the browser.
Encode all non-ASCII
Tick Encode all non-ASCII to also convert every character above code point 127 — accented letters, dashes, symbols, emoji — into decimal numeric entities such as é for é. On a UTF-8 page this isn't needed for display, but it's useful when the output must be pure ASCII, for example an old email template or a pipeline that garbles raw bytes.
Decode
Decode reverses everything using the browser's own HTML parser, so it understands named entities (&, ©, '), decimal numeric entities (é) and hexadecimal ones (é) — the last two both resolving to é.
When to use it
Use encode when embedding user-supplied text, code samples or snippets of markup inside a page, and decode when cleaning up entity-laden text scraped from HTML. For escaping values across JSON, JavaScript and SQL as well, see Escape & Unescape; for URL percent-encoding, the URL encoder.
Privacy
Everything runs locally; nothing is uploaded.