About Base64 Encode & Decode
Base64 encode and decode text or a single file right on this page: UTF-8 text such as accents and emoji round-trips correctly, URL-safe output uses - and _, and an encoded file can be copied as a data URI for HTML or CSS. Decoding accepts standard, URL-safe or data: URI input and offers non-text results as a file download. Nothing leaves your device, and no account is needed for jobs within the Free limits listed on this page.
Synthetic example
Illustrative inputs and expected results. Review your own output before using it.
- Input
Hello, 世界
- Settings
Encode UTF-8; standard alphabet; padding on
- Result
SGVsbG8sIOS4lueVjA==
How to encode or decode Base64
Choose encode or decode
Switch between encoding and decoding.
Enter text or a file
Paste text or drop a file.
Copy the result
Copy the output or download the decoded file.
Base64 Encode & Decode limits
Free, without an account
| Total text | 64 KB |
|---|---|
| Max file size | 1 MB |
| Files per job | 1 |
| Max decoded size | 1 MB |
| Max result size | 4 MB |
Trial, Plus and Pro website limits
| Runs on | Your device, in the browser. Nothing is uploaded. |
|---|---|
| Input | Text, or one file up to 25 MB |
| Cloud files used | None |
| Pro API | Up to 1 MB of text per request; 1 cloud file per request |
Why use BoringKit Base64 Encode & Decode
UTF-8 correct
Keeps emoji and accented characters in UTF-8.
URL-safe option
Uses - and _ with optional padding.
File support
Encode one file, or decode Base64 back to a downloadable file, within the file size shown in the limits table.
Data URIs
Wrap an encoded file as data:<type>;base64,… using the file type your browser reports.
Frequently asked questions
Can I encode a file or image to Base64?
Yes. Drop one file under the text box to get its Base64, or keep Data URI ticked for a ready-to-use data: string. The file must fit the size shown in the limits table.
What is URL-safe Base64?
It replaces + and / with - and _ so the value can be used in URLs and file names. Padding with = can be turned off too.
Is Base64 a form of encryption?
No. Base64 only changes how bytes are written, and anyone can decode it. Do not rely on it to protect passwords or private data.
How do I convert Base64 back to an image or file?
Switch to Decode and paste the Base64 or data: URI. If the result is not plain text, the tool recognizes common types such as PNG, JPEG, GIF, WebP, PDF and ZIP and offers the file as a download.
Why does my Base64 fail to decode?
Characters outside the Base64 alphabet, or a length that suggests the value was cut off, are reported as errors. Spaces and line breaks are ignored, and missing = padding is added automatically.
Which character encoding does Base64 Encode use for text?
Text is encoded as UTF-8 bytes, so accented letters and emoji decode back correctly. When decoding, the result is shown as text only if it is valid UTF-8 without control characters; otherwise it is offered as a file to download.
Can I make a URL-safe data: URI with the Base64 tool?
No. A data: URI always uses standard Base64 with + and /, so URL-safe (- and _) is ignored while Data URI is ticked. Untick Data URI to get the plain URL-safe Base64 of the file.