Encode text or files to Base64 and decode Base64 strings back to text. All in your browser.
or click to browse — converts file to Base64 data URL
The Base64 Encoder/Decoder is a free, browser-based tool for encoding text and binary files into Base64 format, and for decoding Base64 strings back to their original content. Base64 is a binary-to-text encoding scheme that represents binary data using only 64 printable ASCII characters. It is widely used in web development, APIs, email systems, and data storage to safely transmit binary data through channels that only support plain text.
Common use cases include encoding authentication credentials for HTTP Basic Auth headers, embedding images directly in HTML or CSS as data URLs (eliminating extra HTTP requests), encoding binary API request payloads in JSON, embedding font files in stylesheets, and transmitting binary attachments in MIME email formats. Developers frequently need to encode and decode Base64 strings while debugging APIs, building authentication flows, or working with data URIs.
Text is encoded to Base64 in real-time as you type, with character count ratios shown immediately.
Convert any file type — images, PDFs, audio, video — into a Base64 data URL ready to embed in code.
Optional URL-safe mode replaces + and / with - and _ for safe use in URLs and query parameters without escaping.
Paste a Base64 image string to preview it visually in the browser and download the recovered image file.
All encoding and decoding happens in your browser. Sensitive credentials, API keys, and file content never leave your device.
No account, no limits, no watermarks. Encode and decode Base64 as often as you need for free.