Base64 Encode and Decode
Encode and decode text (UTF-8, URL-safe) and files to Base64 or data URI and back. Free, no sign-up, everything runs in your browser.
Encode and decode text (UTF-8, URL-safe) and files to Base64 or data URI and back. Free, no sign-up, everything runs in your browser.
Convert text and files to Base64 and back in one place. Encode UTF-8 text with optional URL-safe output, turn an image or any file into a data URI, CSS or HTML snippet, or restore a file from a Base64 string. It is free, needs no sign-up and works entirely in your browser.
No. Encoding and decoding happen locally in your browser, and files are never sent to a server.
It replaces + and / with - and _ and drops the trailing = padding, so the string can be used in URLs and file names. The decoder accepts both variants, with or without padding.
If the decoded bytes are not valid UTF-8 text, they are probably a binary file such as an image. Use the Base64 to file tab: it detects the file type from its content and lets you download it.
Base64 represents every 3 bytes with 4 characters, so the result is about 33% larger. The tool shows the exact size before and after encoding.