🅱️ Base64 encoding and decoding
Paste the text and click "Encode" to get the Base64 string, or paste the Base64 string and click "Decode" to restore the original text; supports Chinese and long text, and the entire process is completed locally in the browser.
Base64 encoding and decoding tools
Instructions for use
Put the original text or a ready-made Base64 string in the input box, click "BASE64 Encoding" to turn it into Base64, and click "BASE64 Decoding" to restore Base64 to the original text. The result will directly replace the content of the input box, so please copy and save the result of the previous step before changing the content. "Result generated" or the reason for failure will be given below the button and in the status line to help determine whether the conversion is successful.
✅ How to check the results
- The encoding result only contains uppercase and lowercase letters, numbers and plus slashes, and there may be an equal sign at the end.
- Decode the encoding result again to restore the original text, indicating that the process is correct.
- When decoding does not produce a result, remove the spaces and newlines in the string and try again.
🔒 Data and privacy
Encoding and decoding are completed locally in the browser, and the input content does not go through the server and is cleared when the page is refreshed. Please remember that Base64 only encodes and does not encrypt. The result can be restored by anyone. Do not use it to protect passwords and keys.
Base64 encoding
There is a piece of text and I want to get its Base64 form.
Coding results
The result consists of uppercase and lowercase letters, numbers, a plus slash, and possibly one or two equal signs at the end.
The same content expressed in Base64 is shorter than Base32.
length relationship
Every three bytes are encoded into four characters, and the resulting length is about one point three times as long as the original text.
The length will be padded up to multiples of four.
Operation steps
Paste the original text into the input box and click the encoding button to get the result.
The result will replace the content of the input box. Copy and save before proceeding to the next step.
Applicable content
Chinese and English, punctuation, and multi-line text can be encoded directly.
Content containing special symbols can also be safely converted to plain text.
Common uses
Carrying data in interfaces, logs, and text fields.
When you need to restore, just paste it back into the input box and click decode.
All keywords and tutorials 12
❓ FAQ
- Can it be decoded after encoding?
- Can. Base64 is a public and reversible encoding, which can be restored by pasting it back into the input box and decoding it.
- Will Chinese characters be garbled?
- No. Chinese is encoded in UTF-8 and participated in the conversion, which can be completely restored.
- Can it be restored after encoding?
- Yes, use its own decoding button to paste the result back to restore the original text; Base64 is an open and reversible encoding, not encryption.