Paste the Base64
Paste the string, with or without the = padding and with or without line breaks.
Paste a Base64 string and read the original text at once. It understands standard and URL-safe Base64 and tells you when the input is not valid.
100% private — everything is converted in your browser and nothing is uploaded.
100% private — everything is converted in your browser and nothing is uploaded.
Keep going with your result in another tool. Nothing is uploaded.
Paste the string, with or without the = padding and with or without line breaks.
The decoded text appears instantly in the output box.
Copy the result, or decode a file instead with the file section below.
To decode Base64, paste the string into the input box with Base64 to text selected. The original text appears in the output box immediately. Standard and URL-safe alphabets are accepted, missing padding is tolerated and the bytes are read as UTF-8. Everything runs in your browser, so the string you paste is never uploaded.
Base64 groups the original bytes in threes and writes each group as four characters from a 64-character alphabet. Decoding reverses that: each character is turned back into 6 bits, the bits are regrouped into bytes and, if the bytes are text, they are read as UTF-8. For example, SGVsbG8= decodes to Hello.
| Text | Base64 | Bytes |
|---|---|---|
A | QQ== | 1 |
Hi | SGk= | 2 |
Man | TWFu | 3 |
Hello | SGVsbG8= | 5 |
Hello, World! | SGVsbG8sIFdvcmxkIQ== | 13 |
Grüße, Welt! | R3LDvMOfZSwgV2VsdCE= | 14 |
€ | 4oKs | 3 |
You can often guess a file type from the first characters of its Base64. Text that begins with eyJ is usually JSON (a JWT part), and the table below shows the start of common file types.
| File type | Base64 starts with |
|---|---|
| JPEG | /9j/ |
| PNG | iVBORw0KGgo= |
| GIF | R0lGODlh |
| WebP | UklGRg== |
JVBERi0= | |
| ZIP | UEsDBA== |
The conversion runs in your browser. What you type, paste or drop is never uploaded, which matters when the text holds tokens, personal data or internal files.
More utilities that also run without leaving your browser.