Base64 Encoder & Decoder
Encode text to Base64 or decode Base64 to text. Fast, free, and works in your browser.
Ad Slot
Try:
0 characters
0 characters
Quick Example
helloβaGVsbG8=
Common Use Cases
π·Embed images in CSS/HTML
π§Encode email attachments
πSend binary data via JSON APIs
πConvert PDFs for storage
π‘ Tip: Just type or paste text β output updates instantly! Base64 is commonly used for embedding images, sending data over HTTP, and more.
Related Base64 Tools
How to Use
- Select 'Encode' to convert text to Base64, or 'Decode' to convert Base64 back to text
- Enter or paste your text in the input field
- Click the Run button to process
- Copy the result using the Copy button
Example
Input
Hello, World!
Output
SGVsbG8sIFdvcmxkIQ==
FAQ
What is Base64 encoding?
Base64 is a binary-to-text encoding scheme that converts binary data into ASCII characters. It's commonly used to embed binary data in text-based formats.
Is Base64 encryption?
No, Base64 is not encryption. It's an encoding scheme that can be easily reversed. Do not use it to protect sensitive data.
Is my data secure?
Yes, all processing happens in your browser. Your data is never sent to any server.
Base64 Examples
Base64 'Hello World' Example
See how 'Hello World' is encoded to Base64. The classic programming example converted to SGVsbG8gV29ybGQ=.
Base64 JSON Encoding Example
Learn how to encode JSON data to Base64. Common use case for APIs, JWT tokens, and data transfer.
Base64 URL Encoding Example
Encode URLs to Base64 for safe embedding. Useful for redirect parameters and data URLs.
Base64 HTML Encoding Example
Encode HTML markup to Base64. Useful for embedding HTML in data URLs or storing in databases.
Base64 Password Encoding Example
See how passwords are encoded to Base64. Note: Base64 is NOT encryption - do not use for security.
Base64 Emoji Encoding Example
Encode emojis and Unicode characters to Base64. See how ππ becomes Base64.
Base64 JWT Payload Example
Understand JWT token encoding. See how JWT payloads are Base64URL encoded for secure transmission.
HTTP Basic Auth Base64 Example
Create HTTP Basic Authentication headers. Encode username:password format to Base64 for API calls.
Base64 XML Encoding Example
Encode XML documents to Base64 for SOAP messages, API payloads, and data transfer.
Base64 Multiline Text Example
Encode text with multiple lines to Base64. Preserves newlines and formatting in the encoded output.
Binary Data Base64 Example
Convert binary/hex data to Base64 encoding. Common for cryptographic keys, hashes, and binary files.
CSS Data URI Base64 Example
Create Base64 data URIs for CSS backgrounds. Embed small images directly in stylesheets.
Email Attachment Base64 Example
Understand how email attachments are encoded. See Base64 encoding used in MIME/email protocols.
Related Tool Collections
Ad Slot