ケバブケースとしてエンコード

対応する標準に従って “ケバブケースとしてエンコード” で入力をエンコードします。

入力: テキスト結果: テキスト

テキスト入力

ツールの設定

使用例

Make a CSS custom-property name from a design token

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

入力

PrimaryAccentColor

Expected answer

primary-accent-color
コンテキストを意識して試みる
Off
Turn an acronym-bearing document title into a slug

Acronyms become lowercase words separated by hyphens.

入力

JSON API Reference

Expected answer

json-api-reference
コンテキストを意識して試みる
Off
Normalize repeated separators in a release label

Repeated spaces, underscores and hyphens become single boundaries.

入力

  Release__Notes---2026  

Expected answer

release-notes-2026
コンテキストを意識して試みる
Off
Convert an accented article title into an ASCII slug

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

入力

Crème brûlée recipe

Expected answer

creme-brulee-recipe
コンテキストを意識して試みる
Off
Transform separate tokens while retaining a quoted label

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

入力

backgroundColor: "Keep_This"; fontSize: 16;

Expected answer

background-color: "Keep_This"; font-size: 16;
コンテキストを意識して試みる
On
To Kebab case (dumb)

入力

hello world

Expected answer

hello-world
コンテキストを意識して試みる
Off
To Kebab case (smart)

入力

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");
}
コンテキストを意識して試みる
On

パラメーター

パラメーター既定値入力と選択肢
コンテキストを意識して試みるfalseオンまたはオフ

関連ツール

コード整形

操作の参考資料

元の技術文書を見る (English)