Replace spaces with underscores - Online converter

This online tool replaces all the spaces with underscores 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 underscores between those in the output text.