Word Joiner (U+2060)
Word Joiner is an invisible format character that stops a line from breaking where it sits, without adding any width.
U+2060Cf · formatzero width
Need the code?HTML, CSS, JS escapesFind it in text
An app result is shown only after a hand test on a named app version, with the date. Results older than 120 days are hidden until re-tested.
Read the method →What is the Word Joiner used for?
The Word Joiner (U+2060) is used to stop a line from breaking at one point without adding any space. No break is allowed before or after it, so it keeps two characters on the same line, such as a hyphen and the word after it. Unicode prefers it over U+FEFF for this job.
The Unicode names list describes it as a zero width non-breaking space, intended to separate that job from the byte order mark. It is in the General Punctuation block and arrived in Unicode 3.2.
The Unicode BOM FAQ says U+2060 is strongly preferred over U+FEFF for word joining, because it cannot be confused with a byte order mark.
Its line break class is WJ, so no break is allowed before or after it. Put it between two characters that must stay on one line, such as right after a hyphen in a term that must not split.
It is category Cf, Default Ignorable and not whitespace, so trim() keeps it and fonts draw nothing.
Watch out for
- It arrived later than the other zero-width characters here (Unicode 3.2 versus 1.1), so older software may not know it.
- It joins and never separates. To allow a break instead, use the zero width space.
- In UTF-8 it takes 3 bytes (E2 81 A0).
Sources: Unicode names list (NamesList.txt) · Unicode line breaking (UAX #14) · Unicode FAQ: UTF and BOM · Unicode blocks (Blocks.txt) · Unicode version each character arrived (DerivedAge.txt) · Unicode character data (UnicodeData.txt) · Unicode derived properties (DerivedCoreProperties.txt) · ECMAScript: white space · Computed from the character itself (see Codes and escapes)
Codes and escapes
| Format | Value | Copy |
|---|---|---|
| HTML entity | ⁠ · ⁠ | |
| CSS | \2060 | |
| JavaScript / Java | \u2060 | |
| Python | \u2060 | |
| URL-encoded | %E2%81%A0 | |
| UTF-8 bytes | E2 81 A0 |
Properties
- Unicode category
- Cf (Format)
- Treated as whitespace
- No
- Width
- Zero
- Unicode name
- WORD JOINER
Where it works
Not tested yet. Results appear here with the app version and date once each app is tested by hand.
Similar characters
FAQ
How do I type a word joiner?
To type a word joiner, copy it from the tool above, since keyboards have no key for it. In HTML write ⁠, and in JavaScript \u2060. Place it between the two characters that must stay together on one line, for example straight after a hyphen, and nothing visible changes.
What is the difference between a word joiner and a no-break space?
The main difference between a word joiner and a no-break space is width. Both stop a line from breaking, but U+2060 adds no space at all, while U+00A0 adds a normal-width space. Use the word joiner to glue characters that touch, and the no-break space to glue separate words.
Should I use the word joiner or U+FEFF?
You should use the word joiner (U+2060), not U+FEFF, to prevent a line break. The Unicode BOM FAQ says U+2060 is strongly preferred, because U+FEFF can be mistaken for a byte order mark at the start of text. The names list marks that use of U+FEFF as deprecated.