Codificar en Kebab case

Codifica la entrada con “Codificar en Kebab case” según el estándar correspondiente.

Entrada: TextoResultado: Texto

Entrada de texto

Opciones

Ejemplos

Make a CSS custom-property name from a design token

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

Entrada

PrimaryAccentColor

Expected answer

primary-accent-color
Intentar ser consciente del contexto
Off
Turn an acronym-bearing document title into a slug

Acronyms become lowercase words separated by hyphens.

Entrada

JSON API Reference

Expected answer

json-api-reference
Intentar ser consciente del contexto
Off
Normalize repeated separators in a release label

Repeated spaces, underscores and hyphens become single boundaries.

Entrada

  Release__Notes---2026  

Expected answer

release-notes-2026
Intentar ser consciente del contexto
Off
Convert an accented article title into an ASCII slug

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

Entrada

Crème brûlée recipe

Expected answer

creme-brulee-recipe
Intentar ser consciente del contexto
Off
Transform separate tokens while retaining a quoted label

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

Entrada

backgroundColor: "Keep_This"; fontSize: 16;

Expected answer

background-color: "Keep_This"; font-size: 16;
Intentar ser consciente del contexto
On
To Kebab case (dumb)

Entrada

hello world

Expected answer

hello-world
Intentar ser consciente del contexto
Off
To Kebab case (smart)

Entrada

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");
}
Intentar ser consciente del contexto
On

Parámetros

ParámetroValor predeterminadoEntrada y opciones
Intentar ser consciente del contextofalseActivado o desactivado

Herramientas relacionadas

Ordenar código

Referencia de la operación

Ver la documentación técnica original (English)