File to Base64 example
hello.txt containing HelloSGVsbG8=A five-byte UTF-8 file containing exactly Hello, without a newline, produces this result. As a text/plain Data URL it becomes data:text/plain;base64,SGVsbG8=.
100% local. No uploads. No storage.
0 characters
Files never leave your device.
Files over 25 MiB may use significant browser memory. Maximum: 64 MiB per file.
Options apply to encoding text and files. Decoding accepts standard and URL-safe Base64, with or without padding, and ignores whitespace. Data URLs always use standard, padded Base64 without wrapping.
Saved you some time? Buy me a coffee ☕
Selecting a file gives this page access to its bytes in browser memory. It does not upload the file. The encoder reads the raw bytes without changing the file’s contents, character encoding, or line endings.
hello.txt containing HelloSGVsbG8=A five-byte UTF-8 file containing exactly Hello, without a newline, produces this result. As a text/plain Data URL it becomes data:text/plain;base64,SGVsbG8=.
Base64 expands the byte count by roughly one third. A 3 MiB file produces 4 MiB of Base64 before any prefix or wrapping. The app warns above 25 MiB and rejects files above 64 MiB before reading them. Smaller files are more comfortable on mobile devices.
All conversions run locally in your browser. No input, files, filenames, or results are uploaded or saved by Base64Baboon. Copies and downloads you request are yours to manage. Read the privacy details. Base64 is encoding, not encryption.
Any file type, including images, PDFs, ZIP archives, and text. The converter encodes bytes; it does not inspect or render the file’s contents.
No. Raw Base64 contains the file bytes. A Data URL adds a media type, not a filename. Your selected filename is only used locally for the suggested result download name.
Yes. Enable URL-safe Base64 in Advanced options for raw output. Data URLs always use the standard alphabet, padding, and no line wrapping.
Turn a local file into raw Base64 or a Data URL. Images, PDFs, archives, and text files are read entirely in your browser.