Decode Base64 to text or a file, or encode text, a file or an image to Base64 and data URIs. Runs entirely in your browser.
Base64 Encoder / Decoder converts text, a file or an image to Base64 and back, including the URL-safe variant used by JSON Web Tokens, query parameters and data URIs.
Encoding a file produces a string about a third larger than the file, which is the price of writing bytes with 64 printable characters. An image encoded as a data URI can be pasted straight into CSS or an img tag, which saves a request at the cost of a larger file. Decoding works in both directions too: if a string turns out to hold an image or another binary file rather than text, the page offers it as a download instead of filling the box with unreadable characters.
Base64 is an encoding, not encryption. It exists so that arbitrary data survives transport through systems that only handle text, and it offers no secrecy at all: anyone can decode it instantly. Use it for transport, never for protection.
This tool runs in your browser and needs JavaScript.