跳到主內容

Unicode字碼點查詢

開發者工具

從字元取得U+字碼點、UTF-8位元組與HTML編碼

答案速覽

Unicode Code Point Lookup: Character to U+ code point, UTF-8 bytes and HTML. Code point U+XXXX uniquely identifies a character (中 = U+4E2D).

中
字元數(碼點)3
UTF-8 位元組8
UTF-16 單元4
輔助平面字元1
字元碼點UTF-8UTF-16HTMLJS
中U+4E2D0xE4 0xB8 0xAD0x4E2D中\u4e2d
AU+00410x410x0041A\u0041
🚀U+1F6800xF0 0x9F 0x9A 0x800xD83D 0xDE80(代理對)🚀\u{1f680}

編碼原理

  1. 1碼點是抽象編號(如 U+4E2D);UTF-8/UTF-16 是這個編號的位元組排布方式。
  2. 2UTF-8:ASCII 1 位元組、常用漢字 3 位元組、Emoji 4 位元組——與 ASCII 完全向後相容。
  3. 3JS 的 string.length 按 UTF-16 單元計數:"🚀".length === 2。真實字元數請用 [...str].length。
安全:零寬字元(U+200B、U+FEFF)與同形字元(西里爾 а vs 拉丁 a)常被用於釣魚與暗浮水印——處理不可信文本時應歸一化並剝離。字串比較前注意 NFC/NFKC 歸一化(é 有單碼點與組合兩種表示)。

這個工具對你有幫助嗎?

怎麼用

  1. Paste or type content: drop code/text into the Unicode Code Point Lookup or fill the parameters.
  2. Choose mode/options: switch format, rules or processing as needed.
  3. Live output: results appear instantly — nothing is submitted, data stays in your browser.
  4. One-click copy: copy the output straight into your development environment.

核心要點

  • Unicode Code Point Lookup is a free online developer tool — open and use, no sign-up.
  • All calculations run locally in your browser; your data never leaves the device.
  • Key capability: Character to U+ code point, UTF-8 bytes and HTML.
  • Results come with formulas and reference tables so you can verify every number.

原理與公式

Unicode & UTF-8

Code point U+XXXX uniquely identifies a character (中 = U+4E2D)
UTF-8: 1 byte (ASCII), 2 (U+0080+), 3 (U+0800+), 4 (U+10000+)
Emoji beyond U+FFFF use surrogate pairs — "😀".length is 2 in JS
HTML entities: 中 (decimal) or 中 (hex)

常見問題

How do I use the Unicode Code Point Lookup?
Open the page and fill in the input fields — results update automatically. Character to U+ code point, UTF-8 bytes and HTML.
Are the results accurate?
Yes. Standard formulas and conversion factors are used and verified.
Is it free? Do I need to sign up?
Completely free. No registration, login or download required.
Does it work on mobile?
Yes. The responsive design works on phones, tablets and desktops.
Is my data saved?
No. Everything runs locally in your browser.

相關工具

相關指南

來源與更新

Based on RFC 4648, ECMA-262 and related specifications. Last updated: 2025-07

最近更新:

本頁公式與內容經YiJianSuan團隊覆核,僅供學習參考,實際業務請以官方口徑為準。

內容由YiJianSuan編輯團隊維護並定期覆核,更新與審核流程詳見編輯規範.

引用本頁: YiJianSuan. Unicode字碼點查詢[EB/OL]. https://www.yijiansuan.com/zh-TW/c/dev/unicode

本工具提供的結果僅供參考,不構成任何專業建議,請以官方核算為準。