Encode text to Base64 or decode Base64 to text. Supports UTF-8.
Last updated: September 2026Base64 is a binary-to-text encoding scheme that represents binary data using a set of 64 ASCII characters (A–Z, a–z, 0–9, +, and /, plus = for padding). It was originally designed to transmit binary content over channels that only support text, such as email (MIME) and early HTTP. Today Base64 is used everywhere in web development — from embedding images directly in HTML and CSS via data URIs, to encoding authentication tokens, to passing binary payloads through JSON APIs that only accept string values.
Base64 is the right choice when you need to embed a small image or font directly inside a stylesheet to reduce HTTP requests, when you are constructing a data: URI, or when an API requires you to submit file content as a JSON string. It is also commonly used to inspect or debug encoded values you encounter in JWTs, email headers, or URL parameters.
multipart/form-data) is far more efficient than Base64-encoding it into JSON.url(data:image/png;base64,...) and keep the encoded asset under a few kilobytes to avoid slowing down stylesheet parsing.Weekly tips, new tools, and productivity hacks. No spam.