Base64

Encode and decode Base64

Examples
Plain text

Edit either side and the other updates instantly. Non-ASCII text and emoji are handled correctly via UTF-8.

Base64

Do this with a friend

Watch the same screen together, live

Was this tool helpful?

About this tool

This tool converts text to and from Base64. It encodes to UTF-8 bytes first so multi-byte characters are preserved, and decoding reverses the same path to restore the original text exactly. For example, the default sample text, 'Hello from nol.so ๐Ÿ‘‹', encodes to SGVsbG8gZnJvbSBub2wuc28g8J+Riw==, and decoding that string brings back the exact same text, emoji included.

How to use

  1. Type or paste text into the 'Plain text' box on the left and the Base64 result appears instantly on the right.
  2. Conversely, paste a Base64 value into the right box and the original text is restored on the left.
  3. Pasting URL-safe Base64 (using - and _) also decodes correctly โ€” those characters are converted to the standard alphabet automatically.
  4. Click one of the sample buttons (A/B/JSON) to try a ready-made string and see the conversion instantly.
  5. Use the copy button on either side to grab the value you need.
  6. Create a room with 'play together' to view the same text and Base64 value as someone else.

Frequently asked questions

Does converting to Base64 encrypt my data?
No. Base64 is an encoding that anyone can reverse, so it should never be used to keep something secret. Use actual encryption if you need to hide a value.
Will Korean text or emoji get corrupted?
No. Characters are converted to UTF-8 bytes before Base64-encoding, so decoding restores the exact original characters.
What happens if I enter invalid Base64?
If decoding fails, the input box border turns red and an error message is shown.
Is this the same Base64 used in URLs or JWTs?
URLs and JWTs often use URL-safe Base64, which uses - and _ instead of + and /. This tool automatically converts those characters to the standard alphabet when decoding.
What does the sample text encode to?
The default sample, 'Hello from nol.so ๐Ÿ‘‹', encodes to SGVsbG8gZnJvbSBub2wuc28g8J+Riw==, and 'Hello, world!' encodes to SGVsbG8sIHdvcmxkIQ==.
Does Base64 make the text bigger than the original?
Yes. Base64 represents every 3 bytes as 4 characters, so the result is roughly 33% bigger than the original. It is an encoding meant to represent data as text, not a way to shrink it.
Can I convert a file to Base64 here?
This tool only handles the string typed or pasted into the text box. Converting a file such as an image would need a separate file-handling tool.
Why does the result sometimes end with =?
Base64 groups the original bytes into sets of 3 and turns each group into 4 characters. When the original length is not a multiple of 3, the last group is padded with = to fill the remaining slots โ€” 'Hello, world!' ends up with two of them.
Is the text I type sent to a server?
No. Both encoding and decoding happen entirely in your browser, and nothing you type is sent to a server.

Base64 is an encoding, not encryption that protects data. Encrypt sensitive information separately before handling it.

Similar tools