🔄 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 位元組,寫入檔案或網路傳輸要按位元組數計算。

📚 深度解析:在 ASCII、Unicode 碼點與字元之間互轉,輔助編碼學習與除錯。

💡 常見使用場景

  • 碼點查字元:輸入 U+ 得字元。
  • 字元查碼:輸入字得碼點。
  • 批次:多字批次轉換。
示例
示例:字元「中」的 Unicode 碼點為 U+4E2D。

❓ 常見問題(FAQ)

ASCII 範圍?
ASCII 僅 0-127,超範圍走 Unicode。
用途?
程式設計除錯、編碼教學與資料清洗。
本地處理?
純前端轉換,不上傳資料。

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
⚠️ 使用說明與注意事項