
Two-way, developer-friendly Base64 encoder/decoder with ready-to-paste snippets.
Encode and decode text or files to and from Base64.
Your files never leave your device. Everything runs in your browser.
Base64 Encoder turns plain text into Base64 and back, and can also read any file from your device and return it as a Base64 string. It is a quick way to produce the payloads used in data URIs, JSON fields, API calls, email templates and configuration files without opening a terminal.
Text is encoded as UTF-8 before conversion, so accented letters, non-Latin scripts and emoji survive the round trip. Base64 is an encoding, not encryption: it makes data safe to move through channels that only accept plain ASCII, but anyone who can see the string can decode it in one step. Expect the result to be roughly a third larger than the input, because every three bytes become four characters.
File mode reads the chosen file locally and returns a bare Base64 string.
Hello, world! encodes to SGVsbG8sIHdvcmxkIQ==. Paste that string back and decode it to recover the original sentence.café ☕ becomes Y2Fmw6kg4piV, which decodes to the same accented letter and coffee emoji.Hi there becomes SGkgdGhlcmU=; the same three-bytes-to-four-characters rule applies to binary files.+, / and = padding. If the string is going into a URL, replace + with -, / with _, and drop the padding.No. It is a reversible encoding that represents binary data with 64 printable characters. There is no key and no secret, and anyone with the string can decode it, so it should not be used to protect sensitive information.
Yes. Text is converted to UTF-8 bytes before encoding, so accented characters, Cyrillic, Chinese, Arabic and emoji all decode back correctly. This is why text with non-ASCII characters produces a longer string than a simple Latin-1 encoder would.
No. The encoder emits the standard alphabet with + and / plus = padding. For use inside a URL, replace + with -, / with _, and remove the padding yourself, or encode the value as a query string with the URL Encoder.
Yes, up to what your browser and device memory can handle. The whole file is read into memory as a data URL before the Base64 portion is extracted, so very large files can be slow or fail on low-memory phones.
Base64 represents every 3 bytes of input with 4 output characters. The extra characters and padding add roughly one third to the length, which is why large images are rarely embedded as Base64 in documents.
No. Text is converted with the browser's built-in functions and files are read with the FileReader API on your device. Nothing is sent to a server, logged or shared.
Related convert tools: Image to Base64, URL Encoder, Hash Generator, JSON Formatter.
Text and files are processed entirely in your browser — nothing is uploaded, stored or shared.