Chinese Character Encoding Lookup (Big5/GB/Unicode)

Share:
Developer Tools

Chinese Character Encoding Lookup (Big5/GB/Unicode)

Unicode, UTF-8, UTF-16, Big5, GBK and GB18030 for any character

By Checked against sources by Last reviewed CHINESE DEVELOPER TOOLS ENCODING
Your browser is too old for this tool’s interactive features. Please update to Safari 13.1, Chrome or Edge 80, Firefox 74 or newer.

Chinese Character Encoding Lookup (Big5/GB/Unicode)

Parsed per character — computed locally in your browser; nothing is uploaded.

Read by your browser’s own decoders (the WHATWG Encoding Standard).

📅 Research current as of 06 Nov 2026 · Sources: WHATWG Encoding Standard (gb18030, GBK and Big5 encoders and decoders; index-big5 and index-gb18030, both dated 2024-09-18), from which the Big5 and GBK values are generated and against which every code point was checked: 0 differences, except U+E5E5, where the page shows the standard's A3 A0 and says browsers refuse it. Windows code page 950 differences from Microsoft's CP950.TXT. GB 18030-2022 changes from P. Constable, Unicode L2/22-274 (October 2022).
Standards, published formulas, and reference data are revised over time — check against a current authoritative source before relying on these figures.
Advertisement
After results · AD-W1 Responsive

How to use

Paste or type characters

Paste or type one or more characters in the box — Hanzi, punctuation, ASCII, emoji, or rare extension-block characters all work. The tool splits per Unicode code point, so surrogate pairs (e.g. Ext-B rare characters) stay intact as a single character.

Read the per-character encodings

Each character renders as a card: Unicode code point (U+), UTF-8 bytes, UTF-16 (BE) code units, Big5, GBK/GB2312, GB18030, plus the HTML entity (&#x…;) and the decimal code point.

Understand the Big5 and GB columns

Big5 is a Traditional-Chinese encoding, so MOST Simplified-only characters show "not in Big5" — but not all of them: 万, 与, 厂 and 气 have Big5 code points, and this table lists them. GBK/GB2312 covers Simplified plus many Traditional. GB18030 covers the whole of Unicode, so it always has a value: 1 byte for ASCII, byte-identical to GBK (2 bytes) where the character is in GBK, and 4 bytes for everything outside it — each value is tagged with which of the three you are looking at. The Big5 and GBK values are what a browser writes (the WHATWG Encoding Standard); where Windows code page 950 or Hong Kong's Big5-HKSCS differ, or the character has a GB 2312 row-cell number (区位码), a note under the value says so.

Copy with one click

The Copy button beside each value puts that hex / code point on your clipboard, ready to paste straight into code, a database, or a terminal. Everything is computed locally in your browser.

Or go the other way: bytes to text

Paste bytes in hex — D6 D0 CE C4, %E4%B8%AD, 0xA4 0xA4 — into the second box and press Decode. Your browser reads them as UTF-8, GBK/GB18030 and Big5 side by side, cleanest first, which is the quickest way to tell which encoding a garbled file or URL was in. If two read cleanly, the bytes alone cannot decide, and the tool says so.

Chinese Character Encoding: Big5, GB and Unicode, Untangled

For anyone who writes code that touches Chinese text, the classic trap is that the same character is different bytes in different encodings. A single Hanzi is usually 3 bytes in UTF-8, 2 bytes in Big5 or GBK, and its Unicode code point is yet another number. This tool lays out the hexadecimal representation of any character across all of these mainstream encodings at once, so you can cross-check during data migration, mojibake debugging, or protocol integration. Every conversion runs locally in your browser — your text is never uploaded to any server.

Big5 and the GB family: two parallel legacy encodings

Big5 is the traditional encoding for Traditional Chinese in Taiwan and Hong Kong. It is built around Traditional characters, so most Simplified-only forms are absent and the tool labels them "not in Big5" — though the common claim that Simplified characters do not exist in Big5 at all is too strong, and this table is the evidence. 万 (C945), 与 (C94F), 厂 (C944) and 气 (C961) all have Big5 code points. Others, such as 几 and 儿, are in Big5 as Traditional characters in their own right and merely happen to double as Simplified forms. There is more than one Big5, too. This tool shows Big5 as browsers write it — the WHATWG Encoding Standard\'s, which builds in Hong Kong\'s HKSCS additions — and notes where Windows code page 950 differs (it lacks 1,161 of the characters browsers write, 嘅 among them) and where a character exists only as a Big5-HKSCS code that browsers read but will not write: 3,837 of them, many Cantonese, such as 啲 (9D F8). On the mainland side sits the GB family: GB 2312 (1980) has 6,763 Han characters in two levels, 3,755 and 3,008, and the tool shows a character\'s GB 2312 row-cell number (区位码) when it has one; GBK keeps every GB 2312 code and extends to all 20,902 characters of Unicode\'s original CJK block, many Traditional ones among them; and GB18030, the national standard, uses a variable-length 1/2/4-byte scheme that covers the entire Unicode range. When a character is already in GBK (2 bytes), its GB18030 encoding is byte-for-byte identical to GBK — only characters outside GBK ever use the 4-byte form. The one exception browsers make is the euro sign: 80 in GBK, A2 E3 in GB18030. Grasping this compatibility layer explains why so many "GBK files" can safely be read as GB18030. One exception is worth knowing: GB 18030-2022 moved 18 characters — the vertical punctuation forms U+FE10–FE19 and the components U+9FB4–9FBB — from four bytes back to two. 龴 is FE 59 under the current edition, and software built to the 2005 edition writes 82 35 90 37. This tool follows 2022 and shows the 2005 bytes beside those 18.

What GB 18030-2022 changed

The 2022 edition, which replaced GB 18030-2005, did more than move those 18 characters. Peter Constable\'s summary for the Unicode Technical Committee (L2/22-274, October 2022) sets out three classes of change from the standard\'s Annex D. First, 36 mappings: the 18 characters took the two-byte codes they had always occupied, and the Private Use code points that used to hold those codes took the characters\' old four-byte codes, so U+E78D, A6 D9 under 2005, is 84 31 82 36 under 2022. Browsers deliberately kept writing the 2005 bytes for those Private Use code points, and the tool notes both. Second, six characters that 2005 encoded twice, once at a Private Use code point, lose the Private Use copy; the CJK Extension B code point is the one to use. Third, nine CJK compatibility ideographs are unassigned in favour of the unified ideographs they decompose to. The edition also adds Extensions D to F and sets three implementation levels: level 1 for every product (the original CJK block and Extension A), level 2 for system software (adding the 8,105 characters of the Standard Chinese Characters List), and level 3 for government and public services (every CJK ideograph through Extension F, and the Kangxi radicals). Certification tests under it began in August 2023. One older change catches people out as well: the 2005 edition swapped ḿ (U+1E3F, now A8 BC) with a Private Use code point, and some software still writes the 2000 edition\'s 81 35 F4 37.

Unicode, UTF-8 and UTF-16: code points vs. bytes

Beginners often conflate "Unicode code point" with "UTF-8 bytes", but they live at two different levels. A code point is a character's abstract number in the Unicode character set (中 is U+4E2D), while UTF-8 / UTF-16 are concrete schemes for serialising that code point into bytes. UTF-8 uses 1 byte for ASCII and 3 bytes for common Hanzi; UTF-16 uses one 16-bit code unit for Basic-Plane characters and a surrogate pair for supplementary-plane characters (such as rare Ext-B Hanzi). This tool splits input at Array.from code-point granularity, so even a four-byte character that needs a surrogate pair is shown correctly as a single character rather than being chopped in half.

"Mojibake isn't a broken character — it's the wrong decoder." — a lesson every multi-encoding developer learns eventually.

When you reach for a tool like this

Typical situations include: checking bytes while migrating an old Big5 / GBK database to UTF-8; debugging URL-encoding, HTTP-header, or filename mojibake; hand-writing HTML numeric entities (中) for a front-end; or confirming whether a rare character falls inside GBK's repertoire, which decides whether you need GB18030 or should go straight to Unicode. This is a pure front-end developer aid: it calls no model, sends nothing you type in any request (its only extra download is the encoding table), and contains no randomness — the same input always yields the same output, exactly the determinism a trustworthy encoding reference should have.

Advertisement
After how-to · AD-W2 Responsive

The same character is three bytes in UTF-8 and two in Big5

01

A common Hanzi takes 3 bytes in UTF-8 but only 2 bytes in Big5 / GBK. That is why the same Chinese text has different file sizes under different encodings.

02

A "Unicode code point" is the abstract number of a character; "UTF-8" is the scheme that turns that number into bytes. U+4E2D is 中's code point, while E4 B8 AD are its UTF-8 bytes.

03

Big5 is built around Traditional characters, so most Simplified-only forms are absent and saving Simplified text as Big5 drops characters or produces mojibake. The stronger claim that Simplified characters do not exist in Big5 at all is wrong: 万, 与, 厂 and 气 have Big5 code points, and 几 and 儿 are Big5 Traditional characters that happen to double as Simplified forms.

04

GB 2312 (1980) has 6,763 Han characters (3,755 level-1, 3,008 level-2); GBK keeps all its codes and extends to all 20,902 characters of the original CJK Unified Ideographs block; GB18030 covers all of Unicode. The three nest inside one another, with one exception in browsers: the euro sign is 80 in GBK and A2 E3 in GB18030.

05

GB18030 is variable-length: 1 byte for ASCII, byte-identical to GBK (2 bytes) for anything already in GBK, and 4 bytes only for characters outside it — 𠀀 (U+20000) is 95 32 82 36.

06

GB18030's conformance requirements decide whether a product can be sold in China. The 2022 edition sets three levels: level 1 (the original CJK block and Extension A) for every product, level 2 adding the 8,105 characters of the Standard Chinese Characters List, level 3 everything through Extension F plus the Kangxi radicals. Certification tests under it began in August 2023.

07

UTF-16 uses one 16-bit code unit for Basic-Plane characters and a "surrogate pair" for supplementary-plane ones (like rare Ext-B Hanzi) — which is why some characters "count as two chars".

08

Counting Chinese characters with string.length in JavaScript can be wrong: a supplementary-plane character has .length 2. Iterate real characters with Array.from() or for...of instead.

09

The HTML numeric entities 中 and 中 both denote the same 中 — one hexadecimal, one decimal. They reference the Unicode code point, independent of the page's encoding.

10

The same Hanzi almost always has different bytes in Big5 vs. GBK (e.g. 繁: Big5 C163, GBK B7B1). That is exactly why cross-encoding migration must map character-by-character and cannot just copy bytes.

Frequently Asked Questions

  • A code point is the abstract number of a character in the Unicode set (中 = U+4E2D); it does not dictate how to store bytes. UTF-8 is one concrete scheme for encoding that code point into bytes — 1 byte for ASCII, 3 for common Hanzi. The same code point has different bytes in UTF-8, UTF-16, and UTF-32, yet all point to the same character.

  • Big5 is the legacy Traditional-Chinese encoding, built around Traditional characters and symbols, so most Simplified-only forms are absent — though not all of them: 万, 与, 厂 and 气 have Big5 code points, and 几 and 儿 are Big5 Traditional characters that happen to double as Simplified forms. When a character really is outside the repertoire the Big5 column shows "not in Big5", meaning it has no Big5 code. Store such characters in GBK, GB18030, or UTF-8 — GB18030 always has a code for them, because it covers the whole of Unicode.

  • GBK writes ASCII in one byte and everything else in two, and holds all 20,902 characters of the original CJK Unified Ideographs block. GB18030 is variable-length (1, 2, or 4 bytes), covers all of Unicode, and is China's national standard. The key point: for characters already in GBK, the two are byte-identical (the one exception browsers make is the euro sign, 80 in GBK and A2 E3 in GB18030); only characters outside GBK use GB18030's 4-byte form. This tool computes whichever of the three forms applies and labels it: enter 𠀀 (U+20000, an Ext-B character outside GBK) and the GB18030 column reads 95 32 82 36 while Big5 and GBK both read "not in".

  • BE means Big-Endian — the high-order byte comes first. The tool shows UTF-16 code units (one 16-bit unit per group, e.g. 中 is 4E2D) written big-endian. On a little-endian (LE) system the byte order is reversed (2D4E). Basic-Plane characters are one code unit; supplementary-plane characters are a surrogate pair of two units.

  • Yes. The Unicode code point, UTF-8, UTF-16, HTML entity, and decimal columns work for any character, including ASCII letters, punctuation, and emoji. An ASCII letter is the same single byte in all three (A is 41), because Big5, GBK and GB18030 are all ASCII-compatible. Beyond ASCII, the Big5 and GBK columns only show values for characters in their repertoire and read "not in …" otherwise, while the GB18030 column always has one, because GB18030 covers the whole of Unicode — 4 bytes for a supplementary-plane character such as an emoji. Emoji also render correctly as 4-byte UTF-8 and a UTF-16 surrogate pair.

  • The tool splits your input per Unicode code point and renders a separate encoding card for each character. Splitting uses Array.from, so four-byte characters that need a surrogate pair (e.g. rare Ext-B Hanzi) are treated as a single character and never cut in half. Plain whitespace is skipped so it does not create empty cards.

  • No. All encodings (Unicode, UTF-8, UTF-16, entity, decimal) are computed locally in your browser with JavaScript. The only request the tool itself makes is a one-time, cacheable download of the Big5 / GB lookup table (encmap.json) used to look values up — your text itself never leaves your device.

  • It degrades gracefully: the Unicode code point, UTF-8, UTF-16, HTML entity, and decimal columns still work (they are computed locally in JS and need no table). The Big5 and GBK columns become temporarily unavailable, with a notice above the results that the table failed to load. Only GB18030's 2-byte case depends on the table: its 1-byte ASCII form and its 4-byte form for characters outside GBK are computed from the standard's own formula and are unaffected. Refreshing the page usually recovers it.

  • Because the same character almost always has different bytes across encodings (繁 is C163 in Big5 but B7B1 in GBK). Reading Big5 bytes as if they were GBK or UTF-8 produces mojibake. The correct approach is to decode bytes to Unicode characters using the source encoding, then re-encode with the target — and this tool lets you verify the mapping at every step.

  • No. HTML numeric entities (hex 中 or decimal 中) reference the Unicode code point, independent of the page's declared charset. This means you can represent any Unicode character with an entity even on an ASCII-saved page — handy in email templates, config files, or environments where you cannot type Chinese directly.

Method & sources

How it computes

Per character: Unicode code point, UTF-8 (and its URL form), UTF-16BE code units, Big5 and GBK as the WHATWG Encoding Standard encodes them (Big5-HKSCS-only and Windows CP950 differences noted), GB18030-2022 in its 1-, 2- or 4-byte form with the 2005 and 2022 edition changes noted, GB 2312 row-cell, HTML entity. Bytes to text: the browser's own decoders, ranked by replacement characters.

What this tool implements

  • Corrected 2026-11-06: Big5. The values came from Python's big5 codec, which is neither the Big5 browsers write nor Windows code page 950. Checked against the WHATWG Big5 encoder over every code point, 1,221 disagreed: 256 with different bytes (Ё was C7 B3; browsers write C7 F9), 956 the browser writes that the tool called "not in Big5", and 9 the other way (¢ £ ¥ map to fullwidth forms). The column is now the WHATWG encoder's, and matches it on every code point.
  • Added: 3,837 characters, most of them Cantonese and Hong Kong Han characters such as 啲 (9D F8), exist only as Big5-HKSCS codes in lead bytes 87-A0, which the WHATWG decoder reads and its encoder will not write; the page now says so instead of "not in Big5". Where Windows code page 950 differs (it lacks 1,161 of the characters browsers write, and encodes five differently, such as 仝 C9 69 against C6 DF), the page notes it.
  • Corrected 2026-11-06: GB18030 printed the 2000 edition's bytes for ḿ (81 35 F4 37) and U+E7C7 (A8 BC). The 2005 edition swapped them and the WHATWG standard keeps the swap; ḿ is now A8 BC with the 2000 bytes noted. GBK wrote the euro sign as A2 E3; browsers write the single byte 80 in GBK. After both fixes the GBK column matches the WHATWG GBK encoder on every code point, and GB18030 matches on every code point but U+E5E5, where the page shows the standard's A3 A0 and says browsers refuse it.
  • Added: what GB 18030-2022 changed from 2005, per Annex D as summarised in Unicode L2/22-274: the 36 swapped mappings (the page shows the 2005 bytes for the 18 moved characters, and for their 18 Private Use partners the four-byte code 2022 assigns while browsers keep the two-byte one), the six Private Use duplicates and nine compatibility ideographs it unassigns, the three implementation levels and certification from August 2023.
  • Added: GB 2312 row-cell number (区位码) for the 6,763 Han characters in rows 16-87 (3,755 level 1, 3,008 level 2), computed from the GBK bytes, which keep every GB 2312 code; symbol rows are left out because GBK added characters there. Added a bytes-to-text panel that decodes pasted hex with the browser's own TextDecoder (the WHATWG standard) and ranks UTF-8, GBK/GB18030 and Big5 by replacement characters, saying when more than one reads cleanly.
  • Corrected prose: "GBK is a fixed 2-byte encoding" (ASCII is one byte); "GB18030 ... mandatory since 2001 ... which is why it covers the whole of Unicode" (unsourced, and the causation was invented); "GB2312 ~6,763 common Simplified characters; GBK ~20,000" (now counted from the table: 6,763 Han characters; all 20,902 of the original CJK block).

Sources

What can make this go out of date

  • None at runtime: the page fetches its own character-to-encoding table from this site once and decodes pasted bytes with the browser's TextDecoder; nothing the reader types or pastes is sent anywhere.
Advertisement
Pre-footer · AD-W3 728 × 90