Skip to content
100% local

Non-breaking space inserter

Replace regular spaces with non-breaking ones at the typographic spots where a line break would look wrong.

Input
Output

Non-breaking space inserter

A line break in the wrong place turns tidy text into something that reads awkwardly: a lone preposition stranded at the end of a line, a number separated from its unit, a date split across two lines. This tool finds those spots and replaces the regular space with a non-breaking one (U+00A0). It targets four cases: a one-letter preposition or conjunction, a number followed by its unit or currency (10 kg, 5 %), a numeric date written as day, month and year with dots (1. 1. 2026), a title abbreviation glued to the name after it (Ing. Novák), and long numbers grouped by thousands with spaces (1 000 000).

The rule language option picks the typographic convention: Slovak and Czech both forbid a lone one-letter preposition or conjunction ending a line, with slightly different letter sets; Polish has its own short-word list and writes titles without a trailing dot; German and English don't have a one-letter-word rule at all, so choosing them still fixes numbers, dates, titles and thousands separators, just not the short-word case. Output as either the raw U+00A0 character, for pasting into an editor, or the   HTML entity, for markup. Flip the direction to strip existing non-breaking spaces back into regular ones, which also decodes   entities already present in the text.

Windows and Unix line endings are handled the same way, and the tally under the output reports the character count and how many spaces were converted.

Everything runs locally in your browser — nothing you paste is ever uploaded. Copy the result, download it as a .txt file, or send it back into the input to apply another rule set on top.

FAQ

Why does it matter which space I use?
A regular space lets a line wrap between the two words on either side of it. A non-breaking space keeps them on the same line, which is the difference between "10 kg" splitting across a line break and staying together.
What happens if I pick German or English as the rule language?
Number-and-unit, date, title and thousands-separator rules still apply. Only the one-letter preposition rule is skipped, because German and English typography doesn’t have that convention the way Slovak, Czech and Polish do.
Should I output the character or the   entity?
Use the raw U+00A0 character for plain text, word processors or code you’ll display as-is. Use the   entity when the result is going into HTML markup, so it renders correctly instead of showing as literal text.
Can I undo the non-breaking spaces afterwards?
Yes. Switch the direction to "Remove non-breaking spaces" and run your already-converted text back through the tool; it turns every U+00A0 character and   entity back into a regular space.
Is my text uploaded anywhere?
No. The conversion runs entirely in your browser, and your text is never sent to a server.