๐ค
Base64 Encoder/Decoder
Developer
Free Base64 encode and decode for UTF-8 text in your browser - use Swap to round-trip a result; for images and files, open Base64 Image Converter instead.
0
0
Input
Encode/decode UTF-8 text as standard Base64 in the browser. No file upload, no Base64URL switch - use Base64 Image Converter for images and JWT Decoder for full tokens.
See moreSee less about the Base64 Encoder/Decoder
Examples
Decode a Base64 string
VG9vbGJsaXA= โ ToolblipThe page opens in Encode mode, so switch to Decode before you paste.
Unpadded input
VG9vbGJsaXA โ ToolblipMissing = padding is added automatically when the length needs it.
Base64URL is rejected
VG9vbGJsaXA_ โ Invalid Base64 string - cannot decode.Only the standard + and / alphabet decodes. For a three-part JWT, use JWT Decoder.
Key features
- Base64 to UTF-8 text
- Encode and decode modes
- Swap moves output back to input
- Runs locally in the browser
Related tools
Related Blog Posts
Quick answers for Base64 Encoder/Decoder
How do I decode Base64 back to text?
Set the mode to Decode, then paste the Base64 string. The decoded UTF-8 text appears as you type. The page opens in Encode mode by default, so check the mode first.
Does decoding need the = padding?
No. If the string has no = signs and its length needs them, the tool adds the padding before decoding. Spaces and line breaks are ignored.
Why does a Base64URL string fail?
Decode accepts the standard + and / alphabet only. Base64URL uses - and _ instead, so those strings return Invalid Base64 string - cannot decode.
Does this support files or images?
This page encodes UTF-8 text and decodes Base64 back to UTF-8 text. It has no file upload or image preview - use Base64 Image Converter for those.
Is Base64 encryption?
No. Anyone can reverse the encoding. It does not protect a secret.
Does my text leave the browser?
No. Encode and decode run locally. For a full three-part JWT, use JWT Decoder instead of decoding segments by hand.