ENCODING
Encoding, everything devs need.
Convert between Base64, URL, HTML entity, Unicode escape and Hex — locally in your browser.
Text ⇄ Base64 (UTF-8 safe).
Everything runs locally in your browser
What can this tool do?
Convert between common text encodings: Base64, URL encoding, HTML entity escaping, Unicode (\uXXXX) escaping and hex bytes — handy for debugging, all local.
示例与注意事项Example & notes
一个例子A worked example
旧系统导出的一串「测试」是乱码:按「被当成 Latin-1 解读的 UTF-8」还原,得到正确的「测试」。The garbled string "测试" from a legacy export is UTF-8 misread as Latin-1 — converting it back yields 测试.
注意事项Things to watch
- 乱码的本质是「用错了解码表」,先判断原始编码再转换。Garbled text means the wrong decoding table was used — identify the original encoding first.
- GBK 与 Big5 容易混用,简繁场景务必选对,否则会出现问号或生僻错字。GBK and Big5 are easily confused; pick the right one or you get question marks and odd characters.
- 部分转换不可逆,操作前请备份原文。Some conversions lose information — keep the original.
相关问答More Q&A
怎么判断原始编码?How do I identify the source encoding?
常见做法是逐个尝试并用可读性验证,页面提供一键轮换尝试。Try the candidates and judge by readability — the page can rotate through them for you.
支持批量转换吗?Does it handle batches?
支持按行批量转换,适合处理整份导出文件。Yes — convert line by line, which suits whole exports.