Encode and decode Base64 text or files instantly
Drop a file to encode it to Base64
Free Base64 encoder and decoder. Encode text or files to Base64, decode Base64 strings, with URL-safe mode support. All processing happens client-side — your data stays private.
Base64 is a binary-to-text encoding scheme that converts binary data (or text) into a string of ASCII characters using 64 symbols (A-Z, a-z, 0-9, +, /). It's used to safely transmit binary data over text-based protocols like email (MIME), embed images in CSS/HTML, and encode credentials in HTTP headers.
Standard Base64 uses + and / which are special characters in URLs. URL-safe Base64 (Base64url) replaces + with - and / with _, making the output safe to use in URLs and filenames without percent-encoding.
No. Base64 is an encoding scheme, not encryption. Encoded data can be trivially decoded by anyone. Never use Base64 to 'secure' sensitive data — use proper encryption (AES, RSA) for that.
Base64 encodes every 3 bytes of binary data into 4 ASCII characters, increasing size by approximately 33%. The padding character '=' is added to make the output a multiple of 4 characters.
Yes! Drop any file into the upload zone and it will be encoded to Base64. Image files will show a preview. This is useful for embedding images in HTML or CSS as data URIs.
Standard btoa() only handles Latin-1 characters. Our encoder handles full Unicode by first converting text to UTF-8 bytes before encoding, ensuring emojis and non-ASCII characters work correctly.
Get all tools in your browser
Install the Chrome extension for one-click access to every tool — no tab switching needed.
Last updated: January 2025