Base64 converts binary data into ASCII text format. Common in email attachments, data URIs for embedded images, JSON payloads, and HTTP authentication. Encode text to Base64 or decode Base64 back to plain text.
Type or paste text to instantly encode to Base64, or paste Base64 to decode. The tool automatically processes input as you type. Use the swap button to reverse input and output while switching modes.
Embed images in CSS using data URIs. Send binary data through JSON APIs. Encode email attachments in MIME format. Store credentials in config files. Pass data safely through URLs.
Takes every 3 bytes (24 bits) and splits into 4 groups of 6 bits. Each group maps to one of 64 ASCII characters. Padding (=) fills incomplete groups. Uses custom UTF-8 encoding with TextEncoder/TextDecoder for proper Unicode support.
Base64 converts binary data into text using 64 printable characters (A-Z, a-z, 0-9, +, /). Used for transmitting binary data over text protocols like HTTP and email.
Paste text, click 'Encode', and get the result. In JavaScript: btoa('Hello') returns 'SGVsbG8='.
Paste the Base64 string, click 'Decode', get the original text. In JavaScript: atob('SGVsbG8=') returns 'Hello'.
No. Base64 is encoding, not encryption. Anyone can decode it. Use AES or RSA for actual security.
Increases size by ~33%. Every 3 bytes becomes 4 characters. This tradeoff enables text-based transmission.
Convert special characters to percent-encoded format for URLs. Decode encoded URLs back to readable text.
Escape HTML special characters or decode entities. Prevent XSS and display reserved characters safely.
Generate MD5, SHA-1, SHA-256, and SHA-512 hashes from any text input.
Transform, format, generate, and encode data instantly. Private, fast, and always free.
Browse All Tools