Encode and decode Base64 strings and files instantly. All processing happens in your browser — your data never leaves your device.
Base64 is a group of binary-to-text encoding schemes that represent binary data as a sequence of printable ASCII characters. Each Base64 digit represents exactly 6 bits of data, meaning three bytes of input produce four characters of output. It is widely used in web development, email (MIME), data URIs, and anywhere binary data needs to travel through text-only channels.
This tool encodes and decodes text and files entirely in your browser using JavaScript. Nothing is uploaded or sent to any server. It supports standard Base64 (RFC 4648), URL-safe Base64, line-wrapped output (76 characters per MIME spec), Data URI generation, and multiple character encodings.
Convert images to Base64 Data URIs to embed them directly in your code, eliminating extra HTTP requests.
Encode binary data for safe transmission in JSON, XML, or URL query parameters.
Decode Base64 strings from JWTs, cookies, API responses, or email headers to inspect their contents.
Use the URL-safe variant that replaces +/= with -/_ for filenames, URLs, and tokens.