Encode text or file bytes as Base64, or decode an existing value for inspection. Base64 represents bytes as text; it neither encrypts the input nor verifies who supplied it. Choose the standard or URL-safe alphabet required by the receiving system.
lightbulb When to use this tool
- check_circle Inspect a small Base64 text field in an API response.
- check_circle Prepare a file’s Base64 representation for a field that explicitly requires it.
Inputs and results
Input: Text/file data, direction and URL-safe option.
Output: Converted text, recognized image preview and download controls.
How it works
Choose Encode or Decode and the required alphabet.
For text, paste a non-sensitive test value. For file encoding, choose the file and copy the generated output before changing modes.
Review any decoding error and confirm whether the result is readable text or a supported image preview.
Check the destination specification before copying or downloading the result.
Examples
science Text round trip
The exact text Hello encodes to SGVsbG8=. Decoding it returns Hello. For file encoding, an added newline changes the bytes and therefore the encoding.
science Whitespace boundary
This text editor trims leading and trailing whitespace before encoding. Use file encoding when those bytes must be retained exactly.
Limitations
Not encryption or authenticity checking. Invalid encoding or non-text bytes may not yield readable UTF-8. Text input trims surrounding whitespace. File encoding should be copied before changing modes or alphabet settings; those changes reprocess the text field.
Frequently Asked Questions
Is Base64 safe for passwords? expand_more
Why is decoded output not readable text? expand_more
Processing & Privacy
Processing uses your browser rather than uploading the supplied input to a processing server. Fonts and tool libraries can make third-party network requests. Optional analytics loads after consent. See the Privacy Policy for site-wide details.