Convert Text to dash-case

Replace spaces with hyphens and convert to lowercase.


dash-case converter

Convert your text to dash-case instantly with our free online tool. This simple and efficient converter transforms your input into the widely used dash-case format.

Why is it called dash-case?

dash-case is a text case format where words are written in lowercase and separated by hyphens (-). It gets its name because the hyphens resemble the shape of a skewer, much like pieces of food on a kebab.

Unlike camelCase or PascalCase, dash-case uses hyphens instead of spaces or capitalization to separate words. It is especially useful for URLs and filenames.

Learn more about dash-case on Wikipedia.

Common use cases for dash-case

  • URLs: Many websites use dash-case for SEO-friendly and readable URLs (e.g., example.com/my-new-article).
  • CSS Class Names: In web development, dash-case is often used for CSS classes (e.g., .button-primary).
  • File Naming: Some developers prefer dash-case for filenames to improve readability and compatibility across systems.

What are other names that people use for this casing?

Related casings

How to use the dash-case converter

Using our dash-case converter is simple:

  1. Enter your text into the input box.
  2. Click the "Convert" button.
  3. Copy the converted text and use it in your projects.

FAQ

Is dash-case case-sensitive?

No, dash-case is always written in lowercase with hyphens separating words.

Why is dash-case better for URLs?

dash-case improves readability, SEO performance, and avoids issues with spaces in URLs.

Can I use dash-case for variable names?

Most programming languages do not allow hyphens in variable names, so dash-case is generally used for file names and CSS class names rather than variables.

Try our dash-case converter now and transform your text effortlessly!