This tool replaces runs of whitespace with single hyphens, a quick step toward URL slugs — done in your browser.
How to use it
- Paste text with spaces.
- Whitespace becomes hyphens.
- Copy the dashed result.
About Spaces to Dashes
Replacing spaces with hyphens is the core of building a URL slug or a filename-friendly string. This tool collapses any whitespace into single hyphens and trims the ends, giving you a clean dashed string. For full slug handling including lowercasing and accent removal, pair it with the slugify tool. It runs entirely in your browser.
FAQ
Does it lowercase the text?
No — it only swaps whitespace for hyphens; use slugify for full slug formatting.
Are multiple spaces collapsed?
Yes, runs of whitespace become a single hyphen so you don't get double dashes.
Is it good for filenames?
Yes, dashed strings make safe, readable filenames and URL slugs.