Encode text to Base64, or decode Base64 back into readable UTF-8 text. Base64 is widely used to safely transport binary data and text payloads across formats like JSON, URLs, and email headers.
The tool handles both standard and URL-safe Base64 formats. It can also extract and decode the Base64 payload embedded directly inside a data URL (like data:text/plain;base64,...).
Formatting options
When encoding, you can customize the Base64 output to match the format your system expects:
- URL-safe: Replaces
+and/with-and_so the output can be placed safely into query strings or JSON web tokens without escaping. - Strip padding: Drops trailing
=characters from the end of the string. - Wrap @ 76: Breaks long outputs with newlines every 76 characters, a common formatting requirement for legacy email and MIME systems.
Decoding Base64
Decode mode automatically accepts standard Base64 and URL-safe Base64. It restores missing padding characters if necessary before decoding the value back into UTF-8 text. If the payload is not valid UTF-8 text, the visible result may not be meaningful.
Batch lines
Batch mode treats each non-empty line as a separate item. Use it when you need to encode or decode a list of tokens, secrets, or values simultaneously. You can optionally trim whitespace from each line before it gets processed.