Base64 Encoder & Decoder
Encode text to Base64 or decode Base64 back to readable text.
HTML entities let you display characters that would otherwise be treated as markup, such as angle brackets or ampersands. They also let you write characters that are hard to type directly.
Encode text for a template or decode a snippet you copied from a page. Everything runs locally in your browser.
Runs locally in your browser — nothing is uploaded.
The five characters that can break HTML — & < > " ' — become named entities. Other characters can be encoded as numeric entities if you enable that option.
Decoding maps entities to characters. It does not execute scripts; the result is shown as text.
When inserting user text into HTML, escaping prevents broken markup and cross-site scripting. When reading a page's source, decoding makes it readable again.
Escaping is a security control as much as a formatting one: inserting unescaped user text into HTML is the classic cross-site scripting path. Encoding the five structural characters closes the common case.
Decoding is the reverse direction and is mostly useful when reading page source or migrating content between CMS platforms that store entities differently.