Hongmu Notes

🅱️ 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 decoding

I have a string of Base64 on hand and want to see what the original content is.

Check before decoding

Remove spaces and newlines in the string and keep it continuous.

Verify that the characters all belong to the Base64 alphabet, with the equal sign at the end.

Operation steps

Paste the entire string into the input box and click the decode button.

The result will replace the content of the input box, and you can directly select and copy them all.

Supported characters

Chinese, punctuation and emoticons can be fully restored.

If the original text is binary data, it may appear as garbled characters when decoded, which is normal.

When the result cannot be solved

Most likely there are spaces or line breaks mixed in the string or characters are missing.

It may also be that the equal sign at the end is missing when copying.

Result usage

The solved text can continue to be edited, proofread or archived.

When you need to re-encode, click the encode button to convert it back to a string.

All keywords and tutorials 12

❓ FAQ

Why is the decryption garbled code?
The original text may be binary data or pictures, but the decrypted text is not readable text.
Can the equal sign be omitted?
Recommended to keep. The equal sign is a filler character, and its absence may cause decoding failure.
Do I need to remove newlines before decoding?
To remove. The Base64 string should be kept continuous for a whole paragraph. Spaces and line breaks included during pasting will cause parsing misalignment or failure.