Instant Conversion
Real-time encoding and decoding as you type. No server requests — everything runs in your browser.
Convert text, images, and files to Base64 format instantly. Supports URL-safe encoding, Data URI generation, and real-time preview — completely free and private.
Drag & drop any file here
orMax file size: 50MB • All file types supported
Drag & drop an image here
orPNG, JPG, GIF, SVG, WebP, ICO
Note: URL must support CORS. For images, you can also right-click and copy the image directly.
Real-time encoding and decoding as you type. No server requests — everything runs in your browser.
Support for all file formats including images, PDFs, documents, audio, video, and binary files.
Generate URL-safe Base64 strings that work in URLs and filenames without encoding issues.
Automatically generate Data URIs for embedding images directly in HTML, CSS, or JavaScript.
All processing happens locally in your browser. Your data never leaves your device.
Export as plain Base64, HTML img tag, CSS background, or Markdown image syntax.
Include small images directly in HTML without additional HTTP requests for faster page loads.
Embed icons and small graphics in CSS files to reduce the number of image requests.
Encode files for safe transmission through email systems that only support text content.
Send binary data through JSON APIs and web services that expect string values.
Store small files and images as text in databases that don't support binary fields.
Encode credentials and tokens for HTTP Basic Authentication and JWT payloads.
Base64 uses 64 characters to represent binary data. Each character represents 6 bits of data.
| Value | Char | Value | Char | Value | Char | Value | Char |
|---|---|---|---|---|---|---|---|
| 0 | A | 16 | Q | 32 | g | 48 | w |
| 1 | B | 17 | R | 33 | h | 49 | x |
| 2 | C | 18 | S | 34 | i | 50 | y |
| 3 | D | 19 | T | 35 | j | 51 | z |
| 4 | E | 20 | U | 36 | k | 52 | 0 |
| 5 | F | 21 | V | 37 | l | 53 | 1 |
| 6 | G | 22 | W | 38 | m | 54 | 2 |
| 7 | H | 23 | X | 39 | n | 55 | 3 |
| 8 | I | 24 | Y | 40 | o | 56 | 4 |
| 9 | J | 25 | Z | 41 | p | 57 | 5 |
| 10 | K | 26 | a | 42 | q | 58 | 6 |
| 11 | L | 27 | b | 43 | r | 59 | 7 |
| 12 | M | 28 | c | 44 | s | 60 | 8 |
| 13 | N | 29 | d | 45 | t | 61 | 9 |
| 14 | O | 30 | e | 46 | u | 62 | + |
| 15 | P | 31 | f | 47 | v | 63 | / |
Padding: The = character is used for padding when the input length is not divisible by 3.
URL-Safe: In URL-safe Base64, + becomes - and / becomes _
Base64 is a binary-to-text encoding scheme that represents binary data using 64 ASCII characters (A-Z, a-z, 0-9, +, /). It was designed to safely transmit binary data through systems that only support text, such as email or URLs.
The encoding works by taking 3 bytes (24 bits) of input and converting them into 4 Base64 characters (6 bits each). This makes the output approximately 33% larger than the input.
No, Base64 is NOT encryption. It's simply an encoding scheme — a way to represent data differently. Anyone can decode Base64 data without any key or password.
If you need to secure your data, you should use proper encryption (like AES) first, then optionally Base64 encode the encrypted result for transmission.
Base64 increases data size by approximately 33% because it encodes every 3 bytes of binary data into 4 ASCII characters. This overhead is the trade-off for being able to represent binary data as text.
Standard Base64 uses + and / characters, which have special meanings in URLs. URL-safe Base64 replaces these:
+ becomes - (hyphen)/ becomes _ (underscore)This allows Base64 strings to be used in URLs, filenames, and other contexts where special characters might cause issues.
A Data URI (or Data URL) is a way to embed small files directly in HTML, CSS, or JavaScript. The format is:
data:[mime-type];base64,[encoded-data]
For example, a small PNG image might look like:
data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAAEAAAAB...
This eliminates the need for a separate HTTP request to load the resource.
Yes, completely. All encoding and decoding happens locally in your web browser using JavaScript. Your data is never sent to our servers or any third party.
You can verify this by:
The tool supports files up to 50MB. However, practical limits depend on your browser and device memory. For very large files:
For files larger than 50MB, consider using a command-line tool or splitting the file.
Yes! Simply paste the Base64 string (with or without the Data URI prefix) in Decode mode. The tool will automatically detect if it's an image and show a preview.
You can then download the decoded image file in its original format.