Base64 Encoder / Decoder
Runs locallyEncode any file or image to Base64, or decode a Base64 string back to a file. Everything runs locally in your browser.
Base64 is an encoding that represents binary data using 64 printable ASCII characters, so files and bytes can travel safely through text-only channels like JSON, email, and data URLs. This free online Base64 encoder and decoder converts text and files to Base64 and back, entirely in your browser — nothing is uploaded.
How to encode and decode Base64 online
- 1Paste text into the input to encode it, or paste a Base64 string to decode it back to plain text.
- 2Drop in a file (image, PDF, video) to get a Base64 string or a ready-to-use data URL.
- 3Copy the result with one click — the conversion happens instantly as you type.
What Base64 is used for
Base64 is everywhere data needs to be embedded as text: inline images in CSS and HTML (data: URLs), file attachments in email (MIME), tokens and certificates, and binary payloads inside JSON APIs. Because it only uses safe ASCII characters, the encoded value survives systems that would otherwise corrupt raw bytes.
Encoding a file or video to Base64
Drop any file onto the tool and it returns the Base64 representation plus a complete data URL you can paste straight into code. Note that Base64 inflates size by roughly 33%, so very large videos produce very long strings — fine for small assets, but big media is usually better served as a real file.
Frequently asked questions
- What is Base64 encoding?
- Base64 encodes binary data into a string of 64 safe ASCII characters (A–Z, a–z, 0–9, + and /). It lets binary content be stored or transmitted through text-only systems such as JSON, email, and URLs.
- How do I decode a Base64 string?
- Paste the Base64 string into the decoder above and it instantly returns the original text or file. Everything is processed locally in your browser.
- Can I convert a file or video to Base64?
- Yes. Drop a file onto the tool to get its Base64 string and a data URL. Keep in mind Base64 adds about 33% to the size, so it's best suited to small images and assets rather than large videos.
- Is this Base64 tool free and private?
- Yes — it's completely free with no sign-up, and all encoding and decoding runs in your browser, so your text and files are never uploaded to a server.