Base64 Encoder / Decoder

Encode text to Base64 or decode Base64 strings instantly. 100% browser-based — no sign-up, no data sent to server.

base64.js — RankStreak
Input ready
Output waiting
Output will appear here...
Ready — enter text and click Encode or Decode

What is Base64 Encoding?

Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It is widely used in computing to encode data when transferring through systems that only support text, such as email, HTTP headers, or JSON APIs.

Common Uses

Frequently Asked Questions

Is Base64 encryption?
No. Base64 is encoding, not encryption. Anyone can decode it without a key. Never use Base64 to secure sensitive data.
Why does Base64 end with == ?
Base64 encodes 3 bytes into 4 characters. If input length is not divisible by 3, = padding is added to reach a multiple of 4.
What is URL-safe Base64?
URL-safe Base64 replaces + with - and / with _ so it can be safely used in URL query parameters without percent-encoding.