Base64 Encode Decode
Encode plain text into Base64 or decode Base64 strings back to readable UTF-8 text. Switch modes, optionally use URL-safe Base64, and copy the result.
Enter your text
Base64 is an encoding format, not encryption. Do not use it to protect passwords, secret keys, or other sensitive information.
Result
Base64 commonly expands encoded text by about one-third, excluding small-input and padding effects.
What is Base64 encoding?
Base64 represents binary data using a set of 64 ASCII characters. It is commonly used to transfer data through systems that expect text, such as email formats, data URLs, and some APIs. It is not a form of encryption and does not make information secret.
How to use this Base64 tool
- Choose Encode to Base64 to convert ordinary text, or Decode Base64 to read an encoded string.
- Paste or type your content into the input box.
- Optionally enable URL-safe Base64. When decoding, you can choose whether whitespace should be ignored.
- Select the conversion button, then copy the result or use it as the next input.
Base64 example
The text Hello, world! encodes to SGVsbG8sIHdvcmxkIQ==. Decoding that Base64 string returns the original text. Non-English text is handled as UTF-8.
Frequently asked questions
Is Base64 encryption?
No. Base64 is a reversible encoding method, not encryption. Anyone with the encoded value can decode it, so it should not be used to secure confidential information.
Does Base64 support Tamil and other Unicode text?
Yes. This tool encodes text as UTF-8 before converting it to Base64 and decodes UTF-8 text back to readable characters.
What is URL-safe Base64?
URL-safe Base64 replaces plus (+) with hyphen (-) and slash (/) with underscore (_). Padding characters may also be omitted to make values easier to include in URLs.
Why is the encoded result longer?
Base64 converts each group of three input bytes into four characters, so encoded output is usually about 33% larger for longer inputs.
Why does decoding show an error?
The input may contain characters outside the Base64 alphabet, have invalid padding, or decode to bytes that are not valid UTF-8 text. Check that the full Base64 string was copied correctly.
Is my text uploaded to a server?
The conversion in this calculator runs in your browser using JavaScript. The text entered into the tool is not sent to this page's PHP code for encoding or decoding.