Waving Tooly Mascot

Base64 Encoder / Decoder

Need to convert text to or from Base64? Tooly's here to help!

(Replaces + with -, / with _, removes = padding)

Was this tool helpful?

Happy Tooly Mascot with coding symbols

Why Use Base64?

Base64 encoding isn't for encryption, but Tooly finds it useful for:

  • Data Transmission: Safely send binary data (like images or files) over mediums that only reliably support text (like JSON or XML).
  • Embedding Data: Embed small binary data directly into URLs (Data URIs), HTML, or CSS without needing separate files.
  • Obfuscation (Basic): Makes text non-human-readable at a glance, though easily reversible.
  • Compatibility: Ensures data remains intact when passing through systems that might misinterpret certain characters.

Tooly handles the conversion reliably, supporting UTF-8 characters and URL-safe variants!

What is Base64 Encoding?

Base64 is a group of binary-to-text encoding schemes that represent binary data in an ASCII string format by translating it into a radix-64 representation.

It uses a set of 64 characters (A-Z, a-z, 0-9, +, /) to encode any sequence of bytes. Padding with `=` characters might be added at the end to ensure the output length is a multiple of 4.

The "URL and Filename Safe" variant replaces `+` with `-` and `/` with `_` to avoid conflicts in URLs and filenames, and often omits the padding.

How to Use Tooly's Base64 Tool

1

Enter Input

Paste the text you want to encode OR the Base64 string you want to decode into the input area.

2

Choose Action

Click "Encode to Base64" to convert plain text to Base64.

3

Or Decode

Click "Decode from Base64" to convert a Base64 string back to plain text.

4

URL Safe Option (Optional)

Check the "URL & Filename Safe" box *before* encoding if you need the output to be safe for URLs or filenames.

5

View & Copy Result

The result will appear in the output area. Use the copy button to easily copy it to your clipboard.