Encoder en Kebab case

Encode l'entrée avec “Encoder en Kebab case” selon la norme correspondante.

Entrée: TexteRésultat: Texte

Saisie de texte

Options

Exemples

Make a CSS custom-property name from a design token

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

Entrée

PrimaryAccentColor

Expected answer

primary-accent-color
Tenter d'être conscient du contexte
Off
Turn an acronym-bearing document title into a slug

Acronyms become lowercase words separated by hyphens.

Entrée

JSON API Reference

Expected answer

json-api-reference
Tenter d'être conscient du contexte
Off
Normalize repeated separators in a release label

Repeated spaces, underscores and hyphens become single boundaries.

Entrée

  Release__Notes---2026  

Expected answer

release-notes-2026
Tenter d'être conscient du contexte
Off
Convert an accented article title into an ASCII slug

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

Entrée

Crème brûlée recipe

Expected answer

creme-brulee-recipe
Tenter d'être conscient du contexte
Off
Transform separate tokens while retaining a quoted label

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

Entrée

backgroundColor: "Keep_This"; fontSize: 16;

Expected answer

background-color: "Keep_This"; font-size: 16;
Tenter d'être conscient du contexte
On
To Kebab case (dumb)

Entrée

hello world

Expected answer

hello-world
Tenter d'être conscient du contexte
Off
To Kebab case (smart)

Entrée

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");
}
Tenter d'être conscient du contexte
On

Paramètres

ParamètreValeur par défautEntrée et choix
Tenter d'être conscient du contextefalseActivé ou désactivé

Outils associés

Nettoyage du code

Référence de l’opération

Voir la documentation technique originale (English)