Base64 Encode
Encode text or files to Base64. Paste text or upload a file to get the Base64 representation.
Drag & drop a file here, or click to select
Related tools
Encode text or files to Base64 in your browser. Base64 turns binary or text data into safe ASCII characters for embedding in URLs, JSON, email, and data URIs.
Frequently asked questions
What is Base64 used for?
Embedding binary data in text-only contexts — data URIs, email attachments (MIME), JWTs, and small blobs in JSON or config.
Does Base64 encrypt data?
No. Base64 is encoding, not encryption — anyone can decode it, so never rely on it for security.
Why is the output larger?
Base64 represents 3 bytes as 4 characters, adding about 33% to the size.
Does it handle UTF-8 text and files?
Yes. Text is converted to UTF-8 bytes before encoding, so accents, emoji and non-Latin scripts encode correctly. You can also choose or drop one file of any type, and its raw bytes are encoded. The page sets no size cap, but the whole file is read into memory, so a very large file can make the tab slow.