Text

Case to PathCase

Free and instant online tool to convert normal text, strings, or variables into PathCase.

Input Text
path-case Result
100% Secure
Fast Conversion
High Accuracy

Free Online PathCase Converter

Our string formatting tool instantly transforms your normal text, sentences, or code variables into PathCase. Simply paste your content, and the tool will automatically handle spaces and capitalization.

How to convert

1. Paste Case text

Paste or type your Case content into the input area.

2. Conversion Process

Our tool automatically converts your text to PathCase format with the best possible settings.

3. Copy PathCase

The conversion is complete. You can now copy the result directly to your clipboard.

Frequently Asked Questions

Conversion Specs

InputCase
OutputPathCase
SafetyHTTPS / Auto-delete
Price
Free

Using code

pathCase

Converts a given string into path/case format by splitting it on camelCase boundaries, non-alphanumeric characters, and whitespace, then joining the resulting lowercase words with forward slashes.

Parameters

NameTypeDescription
textstringThe text to convert.

Returns

stringThe path cased string.
npm i @razomy/string-case
import {pathCase} from '@razomy/string-case';

pathCase('Hello World');
// => hello/world

pathCase('camelCaseString');
// => camel/case/string

pathCase('foo_bar');
// => foo/bar