Base64 Encoder/Decoder
Encode or decode Base64 strings
Text
Base64
About Base64 Encoder/Decoder
Base64 is an encoding scheme that converts binary data into a set of 64 printable ASCII characters. It is commonly used to embed binary data (like images) in text-based formats such as HTML, CSS, and JSON, and to safely transmit data in HTTP headers and URLs. This tool encodes and decodes Base64 strings entirely in your browser — no data is sent to any server.
FAQ
- What is Base64 used for?
- Base64 is used to encode binary data into text format. Common uses include embedding images in CSS/HTML using data URIs, encoding binary data in JSON APIs, and encoding email attachments. It is also used in HTTP Basic Authentication headers.
- Why does my Base64 show an error?
- Base64 strings must have a length that is a multiple of 4. If not, padding characters (=) are added. An error usually means the string contains invalid characters or is incomplete. Make sure you are decoding a valid Base64 string.
- Does Base64 encrypt my data?
- No. Base64 is an encoding scheme, not encryption. It converts binary data to text but provides no security. Anyone can decode a Base64 string. For security, use proper encryption like AES or RSA.
Related Tools
Text Encoder & Converter
24 conversion types: Base64, URL, HTML entities, Hex, Binary, Unicode, ASCII, SHA hashes, Morse code, Caesar cipher
URL Encoder / Decoder
Encode and decode URLs online. Convert special characters to percent-encoding instantly
Date Calculator
Calculate the difference between two dates in days, weeks, months, and years
Percentage Calculator
Calculate percentages, discounts, increases, and percentage differences