Base64文本编解码
UTF-8文本双向转换;文件Base64另列。
使用步骤
如何使用
- Paste text or a Base64 value up to 100,000 characters.
- Choose Encode to Base64 or Decode from Base64.
- Review and copy the result.
UTF-8 text handling
The tool encodes and decodes UTF-8 bytes with TextEncoder and TextDecoder. It works for Unicode text such as accented letters, non-Latin scripts, and emoji.
Base64 is not encryption
Base64 is an encoding for bytes, not a way to protect private data. Do not treat an encoded secret as hidden, and check the decoded text before using it.
常见问题
你可能还想知道
Why does decoding fail?
The value may contain invalid Base64 characters, bad padding, or bytes that are not valid UTF-8 text.
Can I encode emoji?
Yes. The encoder converts Unicode text to UTF-8 bytes first.
Is Base64 secure?
No. Anyone can decode Base64; it is not encryption.