How to encode text or files to Base64
Base64 turns binary data into text for data URLs, APIs and config files. Encode and decode locally.
Steps
- Open the Base64 tool.
- Paste text or drop a small file to encode.
- Copy the Base64 output or paste Base64 to decode.
- Use the result in your code or API payload.
Tips
- Base64 is encoding, not encryption — do not use it for secrets.
- Data URLs grow ~33% larger than the original binary.