Encode files & images to Base64
Drag & drop or click to select a file — the data URI is generated instantly in your browser.
Features
Instant conversion
Results appear as you type — no submit button, no server round-trip. Everything runs in your browser.
URL-safe mode
Toggle URL-safe Base64 that replaces +/ with -_ and strips padding for use in JWTs and query strings.
File & image support
Upload any file to get its Base64 data URI — perfect for embedding images in HTML, CSS, or JSON.
Private & offline
All processing happens locally in your browser. Your data is never sent to any server.
Frequently Asked Questions
Base64 is a binary-to-text encoding scheme that represents binary data using 64 ASCII characters: A–Z, a–z, 0–9, +, and /. It is commonly used to encode data for safe transport over text-based protocols like email (MIME) and JSON web tokens (JWT). Every 3 bytes of input produce 4 characters of output, expanding data size by roughly 33%.
URL-safe Base64 (defined in RFC 4648) replaces + with - and / with _, and typically omits trailing = padding. This variant is used in JWTs, URLs, and filenames where the standard Base64 alphabet would cause issues with parsing or filesystem compatibility.
No. Base64 is an encoding scheme, not encryption. It provides no confidentiality or security — anyone can decode it. Never use Base64 as a substitute for encryption when handling sensitive data. Its purpose is to represent binary data in a text-safe format, not to protect information.