Developer tools

path/case Converter

path/case Converter

Convert words or identifiers to path/case for URLs, folders, routes and storage keys.

About this tool

About path/case Converter

path/case joins lower-case words with forward slashes: user/account/settings, docs/getting/started, assets/images/icons. It is handy for building API routes and URL paths from feature names, laying out folder structures, naming keys in object storage buckets, organising Redis or cache keys, and turning hierarchical labels into paths. Paste plain words, a camelCase function, a PascalCase component, a snake_case column or a CONSTANT_CASE name and get the slash-separated version instantly. Word boundaries are split the same way as every other case on the page, so UserAccountSettings becomes user/account/settings and API_v2_Keys becomes api/v2/keys, and each line of a pasted list converts separately. If you need a single URL-safe segment instead of a path, kebab-case or the Slug Generator are better fits. All other cases are listed alongside with copy buttons, so you can take the path, the kebab-case file name and the PascalCase component name from one input. Nothing leaves your browser.

Built and maintained by Abhi JainUpdated

How to Convert Text to path/case

  1. 1

    Paste names

    Paste words or identifiers into the Text box, one per line for a list.

  2. 2

    Read the path/case result

    path/case is selected, so the result shows under the Text box as you type.

  3. 3

    Copy

    Click Copy or Download, or copy another case from the All cases list.

path/case Converter: questions and answers

Does it add a leading slash?

No: the result is user/account/settings. Add / in front for an absolute URL path, or use Find and Replace on a whole list.

Is path/case safe for URLs?

Letters, digits and slashes are, but accented and non-Latin letters are kept as typed. For clean ASCII URL segments use the Slug Generator, which transliterates accents.

What is the difference between path/case and kebab-case?

Only the separator: kebab-case uses hyphens (user-account), path/case uses slashes (user/account), which also creates nested folders or routes.

Can it convert Windows paths?

It converts words, not existing paths. To swap backslashes for slashes, use Find and Replace.