Chuyển đến nội dung chính

Tra cứu điểm mã Unicode

Công cụ cho Nhà phát triển

Chuyển ký tự thành điểm mã U+, byte UTF-8 và mã HTML

Xem nhanh kết quả

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

中
Số lượng ký tự (điểm mã)3
Byte UTF-88
Đơn vị UTF-164
Ký tự mặt phẳng phụ trợ1
Ký tựĐiểm mãUTF-8UTF-16HTMLJS
中U+4E2D0xE4 0xB8 0xAD0x4E2D中\u4e2d
AU+00410x410x0041A\u0041
🚀U+1F6800xF0 0x9F 0x9A 0x800xD83D 0xDE80(Cặp đại lý)🚀\u{1f680}

Nguyên lý mã hóa

  1. 1Điểm mã là số hiệu trừu tượng (ví dụ U+4E2D); UTF-8/UTF-16 là cách sắp xếp byte của số hiệu này.
  2. 2UTF-8: ASCII 1 byte, chữ Hán thông dụng 3 byte, Emoji 4 byte — hoàn toàn tương thích ngược với ASCII.
  3. 3string.length của JS đếm theo đơn vị UTF-16: "🚀".length === 2. Số ký tự thực tế vui lòng dùng [...str].length.
An toàn: Ký tự không rộng (U+200B, U+FEFF) và ký tự đồng dạng (chữ Kirin а vs chữ Latin a) thường được dùng cho lừa đảo và thủy ẩn — khi xử lý văn bản không đáng tin cậy nên chuẩn hóa và loại bỏ. Trước khi so sánh chuỗi ký tự chú ý chuẩn hóa NFC/NFKC (é có hai cách biểu diễn: điểm mã đơn và kết hợp).

Công cụ này có hữu ích cho bạn không?

Hướng dẫn sử dụng

  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.

Điểm chính

  • 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.

Công thức và nguyên lý hoạt động

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)

Câu hỏi thường gặp

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.

Công cụ liên quan

Hướng dẫn liên quan

Nguồn và cập nhật

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

Nguồn đáng tin cậy:

Cập nhật gần nhất:

Công thức và nội dung trên trang này đã được đội ngũ YiJianSuan kiểm tra lại, chỉ dùng để tham khảo học tập, các nghiệp vụ thực tế vui lòng tuân theo thông báo chính thức.

Nội dung được đội ngũ biên tập YiJianSuan duy trì và kiểm tra lại định kỳ, quy trình cập nhật và kiểm duyệt xem tạiQuy định biên tập.

Trích dẫn trang này: YiJianSuan. Tra cứu điểm mã Unicode[EB/OL]. https://www.yijiansuan.com/vi/c/dev/unicode

Kết quả do công cụ này cung cấp chỉ mang tính tham khảo, không cấu thành bất kỳ lời khuyên chuyên nghiệp nào, vui lòng dựa trên kết quả tính toán chính thức.