
Encode text to Base64 or decode Base64 back to text. Full UTF-8 support, runs locally.
Base64 is a binary-to-text encoding scheme that represents binary data in an ASCII string format. It's commonly used for embedding images in HTML/CSS, sending binary data over text-based protocols, and storing binary data in JSON. This tool lets you encode and decode Base64 quickly and easily.
Embedding small images directly in HTML or CSS as data URIs. Decoding Base64 strings from API responses. Encoding binary data for JSON or XML transport. Debugging authentication tokens that use Base64 (like JWT headers).
To encode: type or paste your text in the input, click Encode to get the Base64 result. To decode: paste a Base64 string, click Decode to see the original text. For files, select a file and it will be encoded to Base64. All processing happens locally in your browser.
No, Base64 is encoding, not encryption. It's a way to represent binary data as text, but it provides no security. Anyone can decode a Base64 string back to the original data. For secure data transmission, use actual encryption.
Base64 uses 64 different characters (A-Z, a-z, 0-9, +, /) to represent data. Each character represents 6 bits. So every 3 bytes (24 bits) become 4 Base64 characters (24 bits), resulting in about 33% increase in size.
The equals signs (=) are padding. Base64 processes data in 3-byte chunks. If the input isn't a multiple of 3 bytes, padding is added: one = for 1 remaining byte, two = for 2 remaining bytes. Padding ensures the total length is a multiple of 4.
Yes, but you need to use the right character encoding. This tool uses UTF-8 encoding, which supports all Unicode characters including Chinese, Japanese, Arabic, and emojis. Make sure both encoder and decoder use the same encoding.