Fix Base64 Encoding Errors
Decode, re-encode, and troubleshoot Base64 strings quickly and safely.
Open Base64 Encoder & Decoder with a ready-to-run example.
- You received a Base64 payload and need to inspect it.
- You need to re-encode text with proper padding.
- A token looks Base64 but fails to decode.
- Paste the Base64 value into the Base64 tool.
- Click Decode to see the original text.
- Use Encode to generate a clean Base64 string.
- Trim whitespace and line breaks before decoding.
- Base64URL uses - and _; convert to standard Base64 if needed.
- Invalid padding often means the string was truncated.
SGVsbG8sIGRldmVsb3BlcnMh
Hello, developers!
user:password
dXNlcjpwYXNzd29yZA==
Base64URL replaces + and / with - and _ for URL-safe encoding.
The string might be truncated or missing trailing = characters.
No. Decoding runs locally in your browser. No uploads.
Yes. Use the copy buttons to grab either input or output.
Privacy-first: runs locally in your browser. No uploads.