๐Ÿ”ข Developer Tool

Base64 Encoder / Decoder

Encode plain text to Base64 or decode Base64 strings back to text โ€” instantly, privately, in your browser.

Plain Text Input
Base64 Output
๐Ÿ”„

Encode & Decode

Switch between encoding and decoding with one click. Swap input/output instantly.

๐Ÿ”—

URL-safe Mode

Replace + and / with - and _ for use in URLs, filenames, and JWT tokens.

๐Ÿ“Š

Size Stats

See input and output byte sizes plus the size overhead of Base64 encoding.

๐Ÿ”’

100% Private

All processing is done locally. Your data never leaves your browser.

Frequently Asked Questions

What is Base64 encoding?โ–ผ
Base64 is an encoding scheme that represents binary data as a string of ASCII characters. It is commonly used to transfer binary data over text-only channels like email or embed data in HTML.
Is Base64 the same as encryption?โ–ผ
No. Base64 is encoding, not encryption. Anyone can decode a Base64 string โ€” no key is required. It is used for data representation, not security.
When should I use Base64?โ–ผ
Use Base64 when you need to embed binary data (like images or files) in text formats (JSON, XML, HTML), transmit data over text-only protocols, or store binary data in databases as text.
What is URL-safe Base64?โ–ผ
URL-safe Base64 replaces '+' with '-' and '/' with '_' so the encoded string can be safely used in URLs and filenames without percent-encoding.
How much larger is Base64 than the original?โ–ผ
Base64-encoded data is approximately 33% larger than the original. Every 3 bytes of input become 4 Base64 characters.

How to Encode and Decode Base64

  1. Paste your text or binary data into the input field.
  2. Click "Encode" to convert it to a Base64 string, or "Decode" to convert a Base64 string back to its original form.
  3. Copy the result for use in your code, data URIs, API payloads, or configuration files.

When You Need This

Good to Know

Base64 encoding increases data size by about 33%, so it's best for small payloads. For images, only embed icons or tiny graphics as data URIs โ€” anything over a few KB is better served as a regular file. Base64 is an encoding, not encryption โ€” anyone can decode it, so never use it to "hide" sensitive data.