Convert Text to hyphen-case

Replace spaces with hyphens and convert to lowercase.


hyphen-case converter

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

Why is it called hyphen-case?

hyphen-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, hyphen-case uses hyphens instead of spaces or capitalization to separate words. It is especially useful for URLs and filenames.

Learn more about hyphen-case on Wikipedia.

Common use cases for hyphen-case

  • URLs: Many websites use hyphen-case for SEO-friendly and readable URLs (e.g., example.com/my-new-article).
  • CSS Class Names: In web development, hyphen-case is often used for CSS classes (e.g., .button-primary).
  • File Naming: Some developers prefer hyphen-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 hyphen-case converter

Using our hyphen-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 hyphen-case case-sensitive?

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

Why is hyphen-case better for URLs?

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

Can I use hyphen-case for variable names?

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

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