Base64 Encoder / Decoder

Encode text to Base64 or decode it back.

  • Free
  • No sign-up
  • Instant results

1 Your input

2 Result

Your result will appear here

Fill in the form and press the button. Results show up right here, without reloading the page.

How to use Base64 Encoder / Decoder

  1. Pick encode or decodeSet Mode to Encode to turn text into Base64, or to Decode to turn a Base64 string back into text.
  2. Enter your textPaste plain text or a Base64 string into the Text field. When encoding, tick URL-safe output if the result goes into a URL or filename.
  3. Run and copyPress Run Base64 Encoder / Decoder and copy the result from the output box.

Common uses

  • Decoding a Base64 value from an HTTP header or config file
  • Encoding a string for a data URI or environment variable
  • Creating URL-safe Base64 for query parameters

Frequently asked questions

How do I use Base64 Encoder / Decoder?

1. Pick encode or decode: Set Mode to Encode to turn text into Base64, or to Decode to turn a Base64 string back into text. 2. Enter your text: Paste plain text or a Base64 string into the Text field. When encoding, tick URL-safe output if the result goes into a URL or filename. 3. Run and copy: Press Run Base64 Encoder / Decoder and copy the result from the output box.

What does URL-safe output change?

It replaces + with - and / with _, and drops the trailing = padding, so the result can sit in a URL or filename without escaping. The option only affects encoding.

Can it decode URL-safe Base64?

Yes. Decoding accepts both the standard and the URL-safe alphabet, and missing padding is tolerated. Any other character outside the Base64 alphabet makes the input invalid.

Can I encode files or decode images?

No. The tool works with text only. Spaces at the start and end are kept when encoding, and line breaks are encoded as LF. Decoded binary data such as an image is shown as raw characters, not offered as a file.

Is my text processed on a server?

Yes. Your input is sent to the GigaTools server, converted there and returned; the tool does not store it. Base64 is an encoding, not encryption, so do not paste production credentials here.