Base64 Encoder / Decoder

Encode and decode Base64 strings.

❓ Frequently Asked Questions

Base64 is a binary-to-text encoding that converts binary data into ASCII characters (A-Z, a-z, 0-9, +, /). Use Base64 to: 1) Embed images in HTML/CSS (data URLs), 2) Send binary data in JSON/XML, 3) Encode email attachments, 4) Store binary in text databases. Base64 increases size by ~33%, so use only when necessary.
Base64 converts every 3 bytes (24 bits) of input into 4 characters (6 bits each). Process: 1) Split data into 6-bit chunks, 2) Map each chunk to Base64 character (A=0, B=1...z=61, +=62, /=63), 3) Add padding (=) if needed. Example: 'Man' → 'TWFu'. Decoding reverses this process.
Base64 makes files ~33% larger because it uses 4 characters to represent 3 bytes. 3 bytes = 24 bits → 4×6 bits = 4 Base64 chars. Overhead comes from using only 64 printable characters instead of full 256 byte values. For images, use actual files; only Base64-encode when embedding inline or sending as text is required.
Yes! Convert image to Base64 data URL format: `data:image/png;base64,[encoded_string]`. Use cases: 1) Inline images in CSS (small icons), 2) Embed in JSON API responses, 3) Store in databases. Warning: Large images become huge Base64 strings - only encode small images (<10KB). Use CDN for larger images.
NO! Base64 is encoding, NOT encryption. Anyone can decode Base64 instantly - it provides zero security. Base64 is for data transport, not protection. Don't use Base64 to 'hide' passwords, API keys, or sensitive data. For security, use proper encryption (AES, RSA) or hashing (SHA-256). Base64 is reversible; encryption is not.