How to use Base64 Encode
Represent text as Base64 when a storage field or protocol expects a restricted ASCII character set. The tool encodes UTF-8 bytes, so your input can contain accented letters, non-Latin scripts and emoji.
- Paste the text and choose URL-safe Base64 if the target requires the alternate alphabet.
- Encode, then copy the output exactly.
- Test it in the receiver using the format that receiver specifies.
- Select Process input and review the result.
Example input
Field notes from Tallinn. Tere! ☀
Example use
Prepare a UTF-8 sample string for a configuration field that expects Base64. Compare the decoded value with the original before using it in a test fixture or handing the data to someone else.
Output and compatibility
Base64 is reversible encoding and expands typical input size. It does not protect sensitive values, compress data or remove characters. Standard and URL-safe alphabets use different characters for two values, and integrations can differ in their padding expectations.
Choose an encoding based on the destination
A configuration field, inline image and URL component may each expect a different representation. Use the file encoder for an image whose bytes must survive. Use percent encoding for an ordinary query component. Verify that an integration round-trips the original Unicode value before adopting the encoded string in a fixture or config.
Troubleshooting
If the destination refuses the result, check the expected alphabet and padding rules. Ensure the target decodes UTF-8. If the original data is a file rather than text, use the file encoder so its bytes are retained.
Use URL Encode or Decode when a value needs percent encoding as a query parameter instead.
Frequently asked questions
What is the difference between regular and URL-safe Base64?
The URL-safe alphabet substitutes hyphen and underscore for plus and slash.
Will it preserve Unicode?
The text is converted to UTF-8 bytes before encoding.
Is this encryption?
Base64 can be decoded without a key. Use encryption when you need confidential storage.
Can I encode a file as Base64?
Use File to Base64 to retain the original bytes.
How do I check that the output is correct?
Use Base64 Decode and compare it to the original text.