ENCODING
编码转换,开发常用一站搞定。
Base64、URL、HTML 实体、Unicode 转义、Hex 与文本互相转换,纯浏览器本地处理。
本页处理在浏览器本地完成
这个工具能做什么?
把常见的文本编码互相转换:Base64 编解码、URL 编码、HTML 实体转义、Unicode(\uXXXX)转义、十六进制字节转换,方便调试与数据处理。全部在本地浏览器完成。
示例与注意事项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.