Base64 Encoder & Decoder
Encode text or files to Base64, decode Base64 strings, and convert images to data URIs.
Drop a file or click to select
Images, text files, PDF — max 5 MB
Advertisement
Frequently Asked Questions
Base64 converts binary data to a string of ASCII characters (A–Z, a–z, 0–9, +, /) so it can be safely transmitted over text-based protocols like HTTP, JSON, or email. It increases size by ~33%.
Standard Base64 uses + and / characters, which have special meaning in URLs. URL-safe Base64 replaces + with - and / with _, making it safe to include in query strings without encoding.
Use the File tab to get the data URI (data:image/png;base64,…). Then in CSS:
background-image: url("data:image/png;base64,…"). Useful for small icons to avoid HTTP requests.No. Base64 is encoding, not encryption. It just represents binary data as text. Anyone can decode it instantly. Do not use Base64 to protect sensitive data — use proper encryption (AES, RSA) instead.