Writing toolskebab-case converter

kebab-case converter

Turn a phrase or existing identifier into lowercase words joined by hyphens.

Add or drop TXT, Markdown, CSV, TSV, LOG, DOCX, ODT, or PDF files.

Preview

What this tool is for

Create a hyphenated name for a CSS class or component file. It can pick out words inside an existing mixed-case name, so you can start from the component you already have.

How to use it

Enter “SummerReadingList” and copy “summer-reading-list” from Preview. Add the leading period yourself when using the name as a CSS selector.

Worked example

Input

Summer Reading List

Result

summer-reading-list

How does this differ from generating a URL slug?

Here, “SummerReadingList” splits at the capitals. The URL slug generator lowercases that particular input to “summerreadinglist” and offers a separate option to fold Latin accents. Pick the tool according to the naming rule you need.