path/case Converter
Turn phrases into lowercase words joined with slashes, such as user/first/name. Each line is converted separately.
Characters: 0Words: 0Lines: 0
Case types with examples
Starting text: The Lord of the Rings
path/case
Words are lowercase and joined with slashes.
the/lord/of/the/rings
dot.case
Words are lowercase and joined with dots.
the.lord.of.the.rings
kebab-case
Words are lowercase and joined with hyphens.
the-lord-of-the-rings
snake_case
Words are lowercase and joined with underscores.
the_lord_of_the_rings
camelCase
Words are joined with no spaces; every word after the first starts with a capital.
theLordOfTheRings
What is path/case?
path/case writes every word in lowercase and separates the words with slashes, so "User First Name" becomes user/first/name. The result looks like a file path or the path part of a web address. Words are split at spaces, underscores, hyphens, dots and camelCase boundaries, and each line of your text is converted on its own.
When to use it
It is useful when you turn titles or labels into a folder structure, a route, or a key with namespaces. A few typical jobs are listed below. The converter does not add a leading or trailing slash, and it does not remove accents or symbols, so check the result if your text contains them.
- Creating folder names from a list of section titles.
- Drafting URL routes or API paths from page names.
- Namespaced keys in storage, caches and translation files.
- Breadcrumb-style identifiers.
path/case versus kebab-case in URLs
For the words inside one URL segment, hyphens (kebab-case) are the usual choice because search engines treat a hyphen as a word separator. Slashes divide the address into levels. Use path/case when each word is its own level, for example docs/getting/started, and kebab-case when the words together name a single page, such as getting-started-guide.
How to use the path/case tool
- Paste one name or phrase per line into the box.
- Click path/case (or another naming style).
- Click the copy icon above the text and use the result.
Frequently asked questions
What is path/case?
path/case writes words in lowercase and joins them with slashes, like docs/getting/started, so the result looks like a file path or URL path.
Where is it used?
It suits folder structures, route and URL paths, and namespaced keys. For web addresses most sites prefer hyphens, so also try kebab-case.
Does it add a leading slash?
No. Add one in front yourself if your path needs it.