Base64 Encoder Decoder
Convert UTF-8 text to Base64, decode Base64 back to text, and switch URL-safe output on when needed.
Input
77
Output
104
Padding
1
Input
Output
Encoded
Text encoded as Base64.
UmF2ZW5zTW92ZSBkZXZlbG9wZXIgdG9vbHMKSlNPTiBGb3JtYXR0ZXIKUmVnZXggVGVzdGVyCkJhc2U2NCBFbmNvZGVyIERlY29kZXI= Input bytes
77
Output bytes
104
Output chars
104
Mode
encode
What is a Base64 Encoder Decoder?
A Base64 encoder decoder converts text into a Base64 string and converts a Base64 string back into readable text. Base64 is commonly used when binary or UTF-8 data needs to travel through systems that expect plain ASCII characters.
This tool supports UTF-8 text, normal Base64, and URL-safe Base64. URL-safe Base64 replaces + and / with - and _, and often removes = padding.
When to Use Base64
- Encode small text values for API examples, headers, tokens, or test payloads.
- Decode Base64 values from logs, webhooks, JWT segments, or configuration samples.
- Convert to URL-safe Base64 for values that need to appear in links.
- Check whether a Base64 string decodes cleanly before using it in code.
For structured API payloads, use the JSON Formatter. For matching encoded or decoded text, use the Regex Tester.
For log and webhook event times, use the Unix Timestamp Converter.
Base64 Notes
Base64 is an encoding format, not encryption. Anyone with the encoded string can decode it. Do not treat Base64 as a way to protect secrets.