U+205F ·   · 4/18 em

Medium Mathematical Space (U+205F): Unicode Equation Spacers & Form Bypass Controls

Copy the exact 4/18-em spacer TeX puts around + and −, space a formula automatically, keep it on one line on phones, and check what a form will do with it.

Page 18 · U+205F Utility Box

Medium Mathematical Space (U+205F) Utility Box

The checks on the right are measured live in this browser, so you see the real width your visitors get.

How many
1
Same space in other formats

How to Use Mathematical Space Characters for Custom Layout Cleanups

0 of 4 done
  1. Copy the raw character. Press "Copy U+205F Character". The green message confirms the count, the byte size (3 per character) and the total width in eighteenths of an em.
  2. Space a formula or pick a format. Type a plain expression such as 2x+3=11 into the formula spacer, or copy  ,   or the LaTeX : from the format buttons.
  3. Validate the string. Paste the result into the compatibility validator. It labels every space type, counts characters the way a length limit does, and shows what survives trim().
  4. Copy the finished formula. Leave "Keep on one line" switched on for captions, chat and social posts, so a phone never splits the expression at a spacer.

Where U+205F earns its place is inline maths in plain text: a product caption, a tutorial tweet, a forum post or a spreadsheet note. "2x + 3 = 11" typed with the space bar looks loose and collapses unpredictably in HTML. With U+205F around "+" and a slightly wider space around "=", it reads like a typeset equation, in any font that has the character.

Where it does nothing for you is empty fields. U+205F is a space separator, so JavaScript's trim(), Python's strip() and Java's strip() all remove it. A bio or username made only of it saves as blank. For that job the Hangul Filler U+3164 Code page is the right tool.

Under the Hood: U+205F vs. Standard Typographic Layout Whitespace

The medium mathematical space is a fixed-width space of four eighteenths of an em, about 0.222 em. At 18 pixels that is exactly 4 pixels; at 16 pixels it is roughly 3.6. Unicode added it in version 3.2 (2002) for one reason: plain text needed a character matching the medium space mathematical typesetters had used for decades.

That space comes from TeX. TeX measures math spacing in "mu", where 18 mu equal 1 em, and puts three standard gaps between atoms: a thin space of 3 mu, a medium space of 4 mu around binary operators such as + and −, and a thick space of 5 mu around relations such as =. In LaTeX you type them by hand as ,, : and ;. U+205F is the plain-text form of :, and MathML calls the same width mediummathspace.

To a browser, U+205F is an ordinary space separator (category Zs) with two differences from the space bar. It does not collapse, so 3 of them in a row render as 3 gaps, and its width is defined by the standard rather than by the font designer. Like a normal space, it is a legal line-break point.

Character Unicode hex code Mathematical layout rendering Exact em-fraction Social media input field validation bypass
Medium Mathematical SpaceU+205F · 3 bytesThe spacer TeX puts around binary operators (:, 4 mu)4/18 em ≈ 0.222 emNo. Trimmed like a space; never collapses inside text
Four-Per-Em SpaceU+2005 · 3 bytesText typography, close to a word space; no math role1/4 em = 0.250 emNo. Trimmed like a space
Thin SpaceU+2009 · 3 bytesNear TeX's thin space , (3 mu); used after commas and before unitsAbout 1/5 em (sometimes 1/6)No. Trimmed like a space
Space barU+0020 · 1 byteIgnored inside TeX math mode; collapses in HTMLFont-defined, often 0.25–0.28 emNo. Removed and collapsed everywhere

The last column answers a question people often search for. None of these four characters can make an empty field pass, because every one is a space separator. What U+205F does get past is collapsing: platforms that squeeze double spaces into one, or HTML that renders a run of spaces as a single gap, leave U+205F untouched. If you need a blank that a form accepts as text, use a letter-class character from the blank text generator; if you need a visible gap of a specific width, the space copy and paste page lists 12 of them.

Engineering Clean Math Layouts: Avoiding Broken Breakpoints Natively

How LaTeX processors handle it

Inside LaTeX math mode, TeX ignores typed spaces and inserts its own thin, medium and thick gaps, so pasting U+205F into $a+b$ adds nothing useful. With pdfLaTeX it can even fail, because the default input encoding does not map U+205F. XeLaTeX and LuaLaTeX accept it as a character and print whatever width the current font gives it. In source code, write : or medspace; keep U+205F for the plain-text side of a pipeline, such as an alt attribute or a caption under a rendered equation.

How browser rendering engines execute it

Chrome, Edge, Safari and Firefox render U+205F from the current font when the font has it. Many web fonts leave it out, and then the browser falls back to another font or a synthesized width, which is why the live check above measures it instead of trusting the chart. Expect 0.20–0.25 em in practice. If you need pixel-exact spacing in a rendered equation, use MathML or a library such as KaTeX, which set the 4 mu gap with CSS margins rather than characters.

How formula layout parsers read it

Parsers that tokenise on s treat U+205F as whitespace in JavaScript, Python 3 and Java, so "a" + MSP + "+" + MSP + "b" splits into the same three tokens as "a + b". Parsers that only skip ASCII spaces, which includes many hand-written calculators and spreadsheet formula bars, will see an unknown character and throw an error. Before you evaluate user input, normalise it: NFKC turns U+205F into a plain space in one call.

Keeping inline formulas whole on mobile

Because U+205F is a break point, a 150-pixel phone column can split "a² + b² = c²" after the plus sign, leaving "c²" stranded on its own line. Placing a word joiner (U+2060) right after each spacer forbids that break without adding width. The "Keep on one line" option does exactly that, and the 150-pixel preview shows the difference. In HTML you can achieve the same with white-space: nowrap on a span around the formula; the soft hyphen and word joiner guide covers both approaches.

Length limits and byte budgets

Every U+205F counts as 1 character toward a character limit, exactly like a space, so it neither saves nor costs room in a 280-character post. In UTF-8 it takes 3 bytes against the space bar's 1, which matters only for byte-limited fields such as some SMS gateways and database columns sized in bytes. A formula with 6 spacers costs 12 extra bytes, not 12 extra characters.

Frequently Asked Questions (FAQ): Mastering Technical Formula Space Constraints

Is U+205F the same as LaTeX's : or medspace?

It has the same intended width, 4/18 em, and Unicode created it to represent that space in plain text. LaTeX itself does not use the character; it computes the gap from medmuskip, which is 4 mu that can stretch by 2 mu and shrink to 0 when a line is tight.

Can U+205F make a blank name or bio?

No. It is a space separator, so trim functions in JavaScript, Python and Java remove it and the field saves as empty. Blank names need a character that counts as a letter; the blank comment copy and paste and free fire name space copy tools both use U+3164 for that.

Why does U+205F look as wide as a normal space on my site?

Your web font probably lacks the glyph, so the browser borrowed it from a fallback font. Add a font with full Unicode punctuation to the stack, such as a system UI font or a math font like STIX Two, or set the spacing with CSS margins instead.

How do I find or remove U+205F in pasted data?

Paste it into the invisible character detector, which labels it in place, or run the text through remove invisible characters, which turns it into a normal space. In code, text.replace(/ /g, ' ') does the same.

The single most useful takeaway for U+205F

Use U+205F to make plain-text maths look typeset, add a word joiner when it must not wrap, and normalise it to a plain space before any parser or comparison touches it. It is a spacing character, not a blank.

Got a formula to post? Type it into the formula spacer above and copy it ready to paste.

Open the Formula Spacer