Developer

Base64

Encodes plain text to standard Base64, or decodes a Base64 string back to UTF-8 text. The page works on text, not on binary files.

About this tool

This page encodes plain text as standard Base64 and decodes a Base64 string back to UTF-8 text. Encoding reads the characters as UTF-8 bytes first. Binary files and attachments are outside this tool.

The text Merhaba becomes TWVyaGFiYQ==. The text Hi becomes SGk=. Encode produces Base64 from text. Decode does the reverse and strips whitespace before it decodes.

Invalid Base64 is rejected. Bytes that are not UTF-8 are rejected after decoding as well. The result is not a secret. Anyone who has the string can recover the text.

How to use it

  1. 1

    Encode reads the text as UTF-8 bytes, then writes standard Base64. Decode strips whitespace, decodes, and requires the result to be valid UTF-8.

  2. 2

    The text Merhaba encodes to TWVyaGFiYQ==. The text Hi encodes to SGk=. The Encode and Decode buttons choose the direction.

  3. 3

    Invalid Base64, or bytes that are not UTF-8, is rejected. This is not a file-attachment encoder and not encryption. Anyone who has the string can decode it.

What it accepts

Encoding accepts text only. Characters are read as UTF-8 bytes and then written as standard Base64. A binary file or an attachment is not accepted. Decoding strips whitespace, including line breaks, and then decodes what remains. If those bytes are not valid UTF-8, the result is rejected. If the string is not valid Base64, it is rejected too. Merhaba encodes to TWVyaGFiYQ==. Hi encodes to SGk=. Encode builds Base64 from text. Decode builds text from Base64.

Where your data stays

Base64 encoding and decoding of text run in this browser. The text is not uploaded to the MegaToolkit server. Encode turns plain text into standard Base64. Decode turns Base64 back into UTF-8 text. The page does not encode file attachments and does not encrypt. Anyone who has the string can read the same text. Closing the tab drops it.

Questions

Can it encode a file or an attachment?

No. The page encodes and decodes text only. A binary file, an email attachment, or a raw byte sequence is not accepted.

Is Base64 encryption?

No. There is no key. Anyone who can see the string can read the text back with the same steps. It does not hide the text.

What if the Base64 contains spaces or is broken?

Whitespace is removed before decoding. If the remaining string is not valid Base64, it is rejected. If the decoded bytes are not UTF-8, they are rejected too.

Is the text uploaded?

No. Encoding and decoding stay in this browser. Closing the tab removes the text.