Kebab Case Converter

Converts the input string to kebab case.

Input: TextResult: Text

Text input

Tool options

Examples

Make a CSS custom-property name from a design token

The result can be prefixed with -- when used as a CSS custom property.

Input

PrimaryAccentColor

Expected answer

primary-accent-color
Attempt to be context aware
Off
Turn an acronym-bearing document title into a slug

Acronyms become lowercase words separated by hyphens.

Input

JSON API Reference

Expected answer

json-api-reference
Attempt to be context aware
Off
Normalize repeated separators in a release label

Repeated spaces, underscores and hyphens become single boundaries.

Input

  Release__Notes---2026  

Expected answer

release-notes-2026
Attempt to be context aware
Off
Convert an accented article title into an ASCII slug

Accent removal is useful for this slug; it does not preserve the original spelling.

Input

Crème brûlée recipe

Expected answer

creme-brulee-recipe
Attempt to be context aware
Off
Transform separate tokens while retaining a quoted label

The output is a text transformation, not automatically valid source code.

Input

backgroundColor: "Keep_This"; fontSize: 16;

Expected answer

background-color: "Keep_This"; font-size: 16;
Attempt to be context aware
On
To Kebab case (dumb)

Input

hello world

Expected answer

hello-world
Attempt to be context aware
Off
To Kebab case (smart)

Input

test='hello'
echo $test
aKebabCaseFunction
$aKebabCaseVariable;
function functionName() {
  console.log('things inside quotes do not get broken');
  console.log("things inside quotes do not get broken");
}

Expected answer

test='hello'
echo $test
a-kebab-case-function
$a-kebab-case-variable;
function function-name() {
  console.log('things inside quotes do not get broken');
  console.log("things inside quotes do not get broken");
}
Attempt to be context aware
On

Kebab case is all lower case with dashes as word boundaries. e.g. this-is-kebab-case 'Attempt to be context aware' will make the operation attempt to nicely transform variable and function names.

Format reference: To Kebab case background and specification

Parameters

ParameterDefault valueInput and choices
Attempt to be context awarefalseOn or off

Related tools

Browse code tidy tools