Skip to content

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.

Open the tool: Base64 encode / decode

Steps

  1. Open the Base64 tool.
  2. Paste text or drop a small file to encode.
  3. Copy the Base64 output or paste Base64 to decode.
  4. 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.