Free · runs in your browser · no upload · no quota
Base64 Encode
Type or paste text and get its Base64 encoding as you type. Any language and emoji are encoded as UTF-8, and you can switch to the URL-safe alphabet used in JWTs and URLs.
How to Convert Text to Base64
- Add your text
Type or paste it into the left box, or open a text file. - Pick the variant
Standard Base64 is the default. Choose URL-safe for URLs and JWTs (-and_instead of+and/, no padding), or MIME line breaks for e-mail. - Copy the result
The Base64 appears on the right as you type. Copy it or download it as a .txt file.
Example
Hello, world! 👋
SGVsbG8sIHdvcmxkISDwn5GL
Frequently Asked Questions
-
What is Base64?A way to write any data — text, images, files — using only 64 safe characters (A–Z, a–z, 0–9, + and /). It is used wherever binary data has to travel through a channel made for text: e-mail attachments, data URIs, JSON, HTTP headers and JWTs. It is an encoding, not encryption: anyone can decode it.
-
Why is the Base64 longer than my text?Base64 turns every 3 bytes into 4 characters, so the result is about 33% larger.
-
Are accented letters and emoji supported?Yes. Text is encoded as UTF-8 first, which is what other tools and programming languages expect, so
čor 👋 decode back correctly anywhere. -
What is URL-safe Base64?The same encoding with
-and_in place of+and/, and usually without the=padding, so it can be put in a URL or a file name without escaping. JWTs use it. -
Is my text sent anywhere?No. It is encoded in your browser and never leaves your device.