Base64 to text
Paste the string into the tool above, choose Decode and the text appears. SGVsbG8sIFdvcmxkIQ== decodes to Hello, World!. Base64 is an encoding, not encryption, so anyone can decode it.
Last reviewed 2026-11-04.
never leaves your browser
Worked examples
| Base64 | Text |
|---|---|
| SGVsbG8sIFdvcmxkIQ== | Hello, World! |
| Y2Fmw6k= | café |
| SGVsbG8 | Hello (padding is optional here) |
Is it valid Base64
- Only
A-Z a-z 0-9 + /and trailing=padding are allowed. The URL-safe form uses-and_instead; see Base64URL vs Base64. - Length is a multiple of 4 with padding.
SGVsbG8(no padding) is accepted by most decoders. - A character such as
!makes it invalid. The tool says so instead of guessing.
Garbage after decoding
If the output is unreadable, the bytes are probably not text, for example an image or a compressed file. The tool then shows the hex bytes. Text is decoded as UTF-8, so é is two bytes (Y2Fmw6k= is café).
In code
$ atob('SGVsbG8=') // 'Hello' (Latin-1 only)
Buffer.from('SGVsbG8=', 'base64').toString() // 'Hello' (Node, UTF-8)Running this on a server
Base64 appears in API payloads and tokens. The hosting guide compares places to run a small API.
Frequently asked questions
Is Base64 encryption?
No. It is a reversible encoding with no key. Do not use it to hide secrets.
Why does it end with =?
Padding to a multiple of 4 characters. One or two = signs mark how many bytes the last group held.
Is my data sent anywhere?
No. Decoding runs in your browser.
Sources
- RFC 4648: The Base16, Base32, and Base64 Data Encodings checked 2026-11-04
- MDN: atob() checked 2026-11-04