🔄 ASCII / Unicode / Encoding Converter
Convert text to and from ASCII, Unicode and various character encodings.
📐 轉換規則
字元 ↔ Unicode 碼點(十進位制 / U+ 十六進位制),並給出 UTF-8 位元組序列
在字元與碼點之間互轉,便於理解字元集、除錯編碼問題。注意碼點(如 U+1F600)只是 Unicode 編號,不是檔案位元組;UTF-8 會按字元範圍編成 1–4 位元組,emoji 通常是 4 位元組,寫入檔案或網路傳輸要按位元組數計算。
Formula & Standard References
| Item | Formula / Rule | Source / Standard |
|---|---|---|
| Code point notation | Written as U+XXXX in hexadecimal, spanning U+0000 to U+10FFFF | ISO/IEC 10646 Universal Coded Character Set |
| Encoding width | UTF-8 varies from 1 to 4 bytes, UTF-16 uses 2 or 4, and UTF-32 always uses 4 | Unicode Standard §2.5 Encoding Forms |
| Surrogate pairs | Code points above U+FFFF become a high D800–DBFF plus low DC00–DFFF pair in UTF-16 | Unicode Standard §3.9, Table 3-5 |
⚠️ 使用說明與注意事項
- 本工具純前端執行,資料不會上傳到伺服器
- 建議在主流瀏覽器(Chrome/Safari/Firefox/Edge)中使用
- 計算結果僅供參考,請以實際應用場景為準