Max 5 MB — any file type
How does Base64 encoding work?
Base64 is a binary-to-text encoding scheme that represents binary data as ASCII characters. It uses an alphabet of 64 characters: the letters A–Z and a–z, the digits 0–9, and + and / (or - and _ in the URL-safe variant).
The algorithm divides data into groups of 3 bytes (24 bits), then converts them into 4 characters of 6 bits each. If the number of bytes is not divisible by 3, the = character is used as padding at the end.
Important: Base64 is an encoding, not encryption. Encoded data can be decoded by anyone without a secret key. Never use Base64 to secure sensitive data.
Why use Base64?
Base64 encoding allows binary data (images, files, tokens) to be transmitted through systems that only handle ASCII text, such as emails (MIME), URLs, or JSON APIs.
Common use cases
Images in CSS / HTML
Embed images directly in your code via data:image/png;base64,… to avoid HTTP requests.
JWT Tokens
JSON Web Tokens use URL-safe Base64 to encode their header and payload. Decode them to read the content.
APIs & JSON
Transmit binary data (PDFs, images) in JSON APIs without special character issues.
MIME Emails
Email attachments are encoded in Base64 (RFC 2045) with line breaks every 76 characters.
Privacy Policy
Last updated: June 17, 2026
Data Controller
[TO COMPLETE: Name / Company] — [TO COMPLETE: Address] — Contact: [TO COMPLETE: email]
Data collected by this tool
This tool works entirely in your browser. No entered data (text, files) is transmitted to our servers. All Base64 processing is local to your device.
Cookies and similar technologies
We use an essential cookie (gdpr_consent) to remember your GDPR choice, kept for a maximum of 13 months.
If you accept advertising cookies, Google AdSense may set third-party cookies to display personalised ads. These cookies are subject to Google's privacy policy.
Your rights (GDPR Art. 15–22)
To exercise these rights: [TO COMPLETE: contact email]
Transfers outside the EU
Google AdSense may transfer data outside the European Union. These transfers are governed by Standard Contractual Clauses (SCCs) approved by the European Commission.
Retention period
The gdpr_consent cookie is kept for a maximum of 13 months.
Supervisory authority
You may lodge a complaint with the data protection authority in your country. In France: www.cnil.fr (CNIL).
Legal Notice
In accordance with French law n° 2004-575 of June 21, 2004 (LCEN)
Website Publisher
- Company name: [TO COMPLETE]
- Legal form: [TO COMPLETE]
- Registered address: [TO COMPLETE]
- Registration number: [TO COMPLETE]
- Publication director: [TO COMPLETE]
- Email: [TO COMPLETE]
Hosting
- OVH SAS — 2 rue Kellermann, 59100 Roubaix, France
- www.ovh.com
Intellectual Property
All content on this site (texts, graphics, code) is protected by copyright. Any reproduction without authorization is prohibited.