# Replace spaces with hyphens in a text - Online converter

This online tool replaces all the spaces with hyphens in a text. Paste your text and press the button. The below is an example of an input and output.

a b
c  d
e

a-b
c--d
-e


There are two spaces between "c" and "d" so there are two hyphens between those in the output text.