Text

Case to KebabCase

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

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

Free Online KebabCase Converter

Our string formatting tool instantly transforms your normal text, sentences, or code variables into KebabCase. 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 KebabCase format with the best possible settings.

3. Copy KebabCase

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

Frequently Asked Questions

Conversion Specs

InputCase
OutputKebabCase
SafetyHTTPS / Auto-delete
Price
Free

Using code

kebabCase

Converts a given string to kebab-case by handling acronyms, camelCase, letter-number boundaries, and various delimiters (spaces, underscores, hyphens, dots). Leading and trailing separators are stripped, and the result is lowercased.

Parameters

NameTypeDescription
textstringThe text to convert.

Returns

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

kebabCase('fooBar');
// => foo-bar

kebabCase('Foo Bar');
// => foo-bar

kebabCase('__FOO_BAR__');
// => foo-bar