Encode HTTP Basic Auth: admin:Welcome2026
Input: admin:Welcome2026. Base64: YWRtaW46V2VsY29tZTIwMjY=. Used in HTTP header: Authorization: Basic YWRtaW46V2VsY29tZTIwMjY=. Standard format for API basic authentication.
Encode any text to Base64 or decode Base64 back to text. UTF-8 safe - handles emoji, Hindi, Tamil, Chinese and any Unicode. Runs entirely in your browser; nothing is sent to a server.
Une partie du contenu est encore affichée en anglais.
Base64 is the workhorse encoding for moving binary or special text data through systems designed for plain ASCII. Email attachments, embedded images in HTML/CSS (data URIs), JWT tokens, API authentication headers, image data in JSON responses, encoded credentials in URLs - Base64 is everywhere in modern software. This converter handles UTF-8-safe encoding and decoding so it works seamlessly with text in any language including Hindi, Tamil, Bengali, Chinese, Arabic, emoji, and other non-ASCII characters that would corrupt under naive byte-level Base64.
Common scenarios where this tool helps: decoding a JWT token to inspect its payload during development; encoding an API key or username:password into HTTP Basic Auth format; debugging a Base64-encoded image in an HTML email; decoding configuration values stored in environment variables; quickly testing API responses that include Base64-encoded fields. All conversion happens in your browser - your input text, however sensitive (passwords, tokens, personal data) is never sent to a server.
Pick mode: encode or decode.
Paste your input.
Copy the result.
Encoding converts text to UTF-8 bytes, then groups every 3 bytes into 4 characters from a 64-char alphabet (A-Z, a-z, 0-9, +, /). Decoding reverses the process.
3 bytes → 4 Base64 chars Padding '=' to multiple of 4 chars
Base64 takes binary data and encodes it into 64 printable ASCII characters: A-Z (26), a-z (26), 0-9 (10), plus '+' and '/' (2). Every 3 input bytes (24 bits) become 4 output characters (4 × 6 bits = 24 bits). When the input length isn't divisible by 3, padding '=' characters fill the output to a multiple of 4. This guarantees the encoded form is safe to transport through 7-bit ASCII channels like email and HTTP headers.
UTF-8 safety: text in non-ASCII alphabets (Hindi, emoji, etc.) is first converted to its UTF-8 byte sequence - for example, 'नमस्ते' is 18 UTF-8 bytes, not 6 characters. Those bytes are then Base64-encoded. This calculator uses TextEncoder/TextDecoder for correct UTF-8 handling. The simpler btoa()/atob() functions in browsers only handle Latin-1 and break on Unicode - a common bug in junior developer code.
Encoding overhead: Base64 output is approximately 4/3 the size of input (33% larger). For 1 KB of input, expect ~1.37 KB of Base64. This is the cost of converting binary to printable ASCII. Some variants exist - URL-safe Base64 (replaces '+' with '-' and '/' with '_' to avoid URL encoding issues), Base64 without padding (used in JWT), and others. This calculator uses the standard RFC 4648 alphabet with padding.
Input: admin:Welcome2026. Base64: YWRtaW46V2VsY29tZTIwMjY=. Used in HTTP header: Authorization: Basic YWRtaW46V2VsY29tZTIwMjY=. Standard format for API basic authentication.
JWT structure: header.payload.signature, each Base64URL encoded. Payload like eyJzdWIiOiIxMjM0In0= decodes to {"sub":"1234"}. Useful when debugging authentication issues to see token contents (but signature verification requires the secret).
नमस्ते = 18 UTF-8 bytes. Base64: 4KSo4KSu4KS44KWN4KSk4KWH. The result is much longer than input characters because Hindi UTF-8 encoding uses 3 bytes per character.
Email, JSON and HTTP headers were designed for ASCII. Base64 lets you safely transport binary data through these channels.
No - it's encoding, not encryption. Anyone can decode it instantly. For privacy use proper encryption (AES, RSA).
Base64 expands data by ~33%. Three bytes become four characters. Plus padding to a multiple of 4.
This tool focuses on text. For files, browsers offer FileReader.readAsDataURL - beyond the scope of a calculator.
Date math, password generation, QR codes, IP subnets, base64 encoding, dew point, dice rolls, age calculations - none of these are 'big' problems individually, but they are the small frictions that interrupt your day. This tool runs entirely in your browser, has no popup, no chat widget and no tracking inside the calculation, so you can finish the task and move on.
Many tools in the Daily Utilities category complement each other - date difference + day counter + day-of-the-week, or password generator + QR code + base64 encoder. The related-tool grid links them together so you can move between adjacent problems in a click.
The Base64 Encoder / Decoder is part of the Daily Utilities suite on Online Calculator Tools, alongside 6 related calculators. All tools share the same UI patterns, the same privacy-first rendering (nothing is sent to a server), and the same commitment to showing the formula and assumptions behind every result.