Base64 encode and decode
Turn text into Base64, or a Base64 string back into plain text, instantly in your browser.
How Base64 encoding works
Base64 takes raw bytes and repacks them into a set of 64 printable characters (A to Z, a to z, 0 to 9, plus + and /) so the result is safe to paste into places that only expect plain text, like JSON fields, URLs, email bodies, or config files. Three bytes of input become four Base64 characters, and short input is padded with = at the end. It is not compression and it is not encryption, it is only a different, text-safe representation of the same data.
Example
Hello from Data ForgeSGVsbG8gZnJvbSBEYXRhIEZvcmdlTo decode instead
The tool above is preloaded with Base64 encode. To go the other way, remove that step and click Base64 decode in the Encoding list, or paste a Base64 string as input and swap the step. Every operation runs the same way, in your browser tab, nothing is uploaded.
Questions
- Is Base64 encryption?
- No. Base64 is a reversible encoding, not a cipher. Anyone can decode a Base64 string back to the original text with no key or password. Use it to safely embed binary-ish data as text, not to keep something secret.
- Why does my decoded text look broken?
- Base64 decode expects valid Base64 input: letters, digits, plus, slash, and padding equals signs. Stray whitespace or a truncated string will throw an error or produce garbled output. Paste the full string exactly as given.
- Does this upload my data anywhere?
- No. The encode and decode both run as plain JavaScript in your browser tab. Nothing you type is sent to a server.
Need more than Base64? The full Data Forge workbench chains hex, URL, hashing, ciphers, and more, or try the JWT decoder and timestamp converter.