Free Base64 Encoder & Decoder Online: Convert Text Instantly
Encode and decode Base64 strings instantly in your browser. Free, private, no server communication โ your data never leaves your device.
What Is Base64 Encoding?
Base64 is a binary-to-text encoding scheme that converts binary data into a string of ASCII characters. It represents binary data using only 64 printable characters (A-Z, a-z, 0-9, +, /) plus the = padding character. Why Base64? Many communication protocols (email, HTTP, XML) are designed for text, not binary data. Base64 allows binary content (images, files, binary data) to be safely transmitted as text without corruption.
Use our free Base64 encoder and decoder at timarsouss.com/tools/base64 โ runs entirely in your browser with complete privacy.
How to Encode Text to Base64
1. Go to timarsouss.com/tools/base64 2. Select Encode mode 3. Paste or type your text in the input field 4. Click Encode to Base64 5. Your Base64 string appears below โ click Copy Example:
- Input:
Hello, World! - Output:
SGVsbG8sIFdvcmxkIQ==
How to Decode Base64
1. Select Decode mode 2. Paste your Base64 string 3. Click Decode Base64 4. Your original text appears below
Common Uses for Base64
HTTP Basic Authentication:Authorization: Basic dXNlcjpwYXNzd29yZA==
(where dXNlcjpwYXNzd29yZA== is base64("user:password"))
Data URIs for images in HTML/CSS:
`html
`
Email MIME attachments: Attachments in emails are Base64-encoded to safely transmit binary files over text-based protocols.
JWT Tokens: The header and payload sections of JWT tokens are Base64url encoded (a URL-safe variant).
Storing binary data in JSON: JSON only supports text. Store binary data as Base64 strings in JSON payloads.
Try It Free
โ Free Base64 Encoder & DecoderMore developer tools:
- JSON Formatter โ Format and validate JSON
- URL Encoder/Decoder โ Encode URLs for web transmission
- Hash Generator โ Generate SHA-256 hashes