Halfwidth Space Unicode Identification

Which Unicode character is a halfwidth space? How U+0020 differs from the fullwidth U+3000 and look-alikes, how to identify them, and when to normalize.

Unicode has no character named "halfwidth space." When people search for a half width space in Unicode, they almost always mean the ordinary space, U+0020, as opposed to the fullwidth ideographic space, U+3000, used in Chinese, Japanese and Korean text. A few other characters get called a "half space" in specific communities, and some of them behave very differently. This review explains how to tell them apart, what converting between them changes, and when that conversion is safe.

Short answer

If your text came from a CJK input method or document and the problem is a wide gap or a failed match, you are probably dealing with U+3000 IDEOGRAPHIC SPACE. Its halfwidth counterpart is plain U+0020 SPACE. If the space is narrow in Western typesetting, look at the typographic spaces such as U+2002 EN SPACE, U+2009 THIN SPACE or U+202F NARROW NO-BREAK SPACE. If the text is Persian, "half-space" usually means U+200C ZERO WIDTH NON-JOINER, which is not a space at all. Do not guess from appearance. Check the code point.

What "halfwidth" means in Unicode

Halfwidth and fullwidth are width classes inherited from legacy East Asian encodings. In those encodings, Latin letters, digits and the space occupied half the cell of an ideograph, and wide duplicates existed for compatibility. Unicode records this in the East Asian Width property. U+0020 is classed as Na (narrow), U+3000 as F (fullwidth), and characters in the halfwidth forms range as H (halfwidth).

The Halfwidth and Fullwidth Forms block (U+FF00 to U+FFEF) contains no space character. Its fullwidth ASCII variants start at U+FF01, and U+FF00 is unassigned. The fullwidth space was already encoded as U+3000 in the CJK Symbols and Punctuation block, and the standard space serves as the narrow form. So "halfwidth space" describes a role, not a separate character.

Halfwidth is not a font, a style or a mirror effect. It is a property of the stored character. Swapping a fullwidth space for a halfwidth one changes the underlying data, not just how it looks.

Characters people mean by "halfwidth space"

Code point | Name | UTF-8 bytes | After NFKC normalization | Why it shows up
U+0020 | SPACE | 20 | unchanged | The standard space and the usual meaning of "halfwidth space"
U+3000 | IDEOGRAPHIC SPACE | E3 80 80 | U+0020 | The fullwidth space typed by CJK input methods; the character a halfwidth space is contrasted with
U+2002 | EN SPACE | E2 80 82 | U+0020 | Half an em wide; sometimes called a half space in typesetting
U+2009 | THIN SPACE | E2 80 89 | U+0020 | Narrow typographic space
U+200A | HAIR SPACE | E2 80 8A | U+0020 | Very narrow typographic space
U+202F | NARROW NO-BREAK SPACE | E2 80 AF | U+0020 | Narrow space that prevents line breaks; inserted by some locale-aware date, time and number formatting
U+200C | ZERO WIDTH NON-JOINER | E2 80 8C | unchanged | Called "half-space" in Persian typing; controls letter joining
U+FFA0 | HALFWIDTH HANGUL FILLER | EF BE A0 | a Hangul filler, not a space | Renders blank in many fonts; can be mistaken for a space

In Shift_JIS, the encoding where many people first meet the halfwidth and fullwidth distinction, the halfwidth space is the single byte 0x20 and the fullwidth space is the two-byte sequence 0x81 0x40.

How to identify the space you actually have

Visual width is only a hint. In a monospaced CJK font, U+3000 usually fills a full character cell and U+0020 fills half of one, but fonts and renderers differ, and several of the characters in the table can look identical. Reliable identification means reading the code point or the bytes.

In Python, the standard unicodedata module reports the name and East Asian Width class of each character:

import unicodedata

def inspect(text):
    for ch in text:
        print(f"U+{ord(ch):04X}  {unicodedata.name(ch, '<no name>')}  width={unicodedata.east_asian_width(ch)}")

inspect("a b\u3000c")

In this example, the ordinary space reports as SPACE with width class Na, and the second gap reports as IDEOGRAPHIC SPACE with width class F. In JavaScript, iterating over a string with the spread operator and calling codePointAt(0) on each element gives the same code points. On the command line, a hex dump such as xxd shows the raw UTF-8 bytes. Look for 20 for a plain space and e3 80 80 for an ideographic space.

Use a code point view rather than a find-and-replace dialog. Some editors match several kinds of whitespace with one search, which hides exactly the difference you are trying to find.

What converting halfwidth and fullwidth spaces changes

Replacing U+3000 with U+0020 changes the stored character. Copying, searching, sorting and parsing all see the new character, and the visual gap narrows. This is different from presentation-only techniques. For example, CSS defines a text-transform value of full-width that changes how characters are displayed while leaving the underlying text unchanged. Browser support for it should be checked before relying on it, and copying the text still yields the original characters.

Unicode compatibility normalization (NFKC or NFKD) maps U+3000 and the typographic spaces to U+0020 because they carry compatibility decompositions to the plain space. It does much more than that, though. It also folds fullwidth letters and digits, ligatures, superscripts and other compatibility characters. It leaves U+200C untouched and maps U+FFA0 to a Hangul filler rather than to a space. If you only want to unify spaces, a targeted replacement is more predictable:

SPACE_LIKE = {"\u3000", "\u2002", "\u2009", "\u200A", "\u202F", "\u00A0"}
clean = "".join(" " if ch in SPACE_LIKE else ch for ch in text)

Adjust the set to your needs. Including U+00A0 and U+202F removes their no-break behavior, which may matter in prose.

Will the result stay usable after copying or sharing?

  • Copy and paste usually carries the exact code point, but some editors, form fields and messaging tools trim or normalize input. No destination-specific tests were supplied for this review, so test the specific app you care about.
  • Search and matching: a phrase containing U+3000 will not match the same phrase with U+0020 unless the system normalizes whitespace. This is a common cause of failed lookups and duplicate records.
  • Parsing: tools that split on the ASCII space, such as default shell word splitting or simple CSV and log parsers, treat U+3000 and the typographic spaces as ordinary characters rather than separators.
  • Trimming: JavaScript's trim and Python's str.strip remove U+3000 and the other space separators, but not U+200C, which is a format character, or U+FFA0, which is classified as a letter. That is why a username made only of Hangul fillers can pass a "not blank" check.
  • Line breaking: U+202F and U+00A0 prevent a break at that position. Replacing them with U+0020 can split a number from its unit or a time from its AM/PM marker.
  • Accessibility: screen readers generally do not announce ordinary spaces, but their handling of unusual spacing and filler characters has not been tested here and varies by product and settings. In Persian, removing U+200C changes how letters join and can make words harder to read for everyone.

Is normalizing to the halfwidth space suitable for your use?

Converting fullwidth and typographic spaces to U+0020 is the right choice for data that machines read: code, identifiers, filenames, URLs, search keys, CSV fields, form validation and database lookups. The main benefit is predictable matching and parsing. The main tradeoff is that you lose layout intent and, for no-break spaces, line-break control.

  • Keep U+3000 in Japanese or Chinese prose where fullwidth spacing is deliberate, such as the conventional indent at the start of a Japanese paragraph.
  • Keep U+200C in Persian and other text where it controls letter joining. It is meaningful, not decorative whitespace.
  • Keep U+202F or U+00A0 where a line break would separate things that belong together, unless a downstream system requires plain ASCII.
  • Reject or strip U+FFA0 and U+3164 in names and identifiers, where they mostly serve to look blank.
  • When you need maximum compatibility, such as plain-text email, legacy systems or anything a parser will consume, use U+0020.

Search terms that lead to the right information

Because "halfwidth space" is not an official name, searches for it return mixed results. More precise terms include "ideographic space U+3000," "East Asian Width property," "fullwidth to halfwidth conversion," "NFKC normalization," "narrow no-break space U+202F," "zero width non-joiner Persian half-space," and "Unicode code point inspector." Programming-language documentation for Python's unicodedata module and JavaScript's codePointAt covers inspection without third-party tools. No specific online tools were verified for this review, so none are named.

Gaps in this review

No subject-specific evidence was supplied. The character names, code points, encodings, width classes and normalization mappings above come from the Unicode Character Database and general, verifiable behavior. How particular apps, search engines, messaging platforms and screen readers handle these characters was not tested here and should be confirmed in your own environment before you rely on it.