テキスト
Case Converter
テキストや識別子を、camelCase、snake_case、kebab-case など一般的なすべてのスタイルに一度に変換。camelCase/PascalCase での単語の境界、略語(XMLParser → XML + Parser)、数字も認識。
The tool detects word boundaries in any text or identifier — spaces, underscores, hyphens, camelCase/PascalCase boundaries, and abbreviations — and instantly converts the result into every common naming style.
Naming styles
- camelCase — first word lowercase, every following word capitalized, no separators (myVariableName).
- PascalCase — every word capitalized (MyClassName) — typical for class names.
- snake_case — all words lowercase, joined with underscores (my_variable_name) — common in Python and databases.
- kebab-case — words joined with hyphens (my-page-name) — the standard for URLs and CSS classes.
- CONSTANT_CASE, Title Case, Sentence case — for constants and readable headings.
Common uses
- Renaming a variable or function to match another language's convention (e.g. Python's snake_case → JavaScript's camelCase).
- Turning an article title into a URL slug.
- Normalizing database column names or API fields to one consistent style.
Things to keep in mind
Abbreviations (XMLParser, HTTPClient) are recognized as single words automatically, so conversion doesn't break them into individual letters.
Converting to lower case or UPPER CASE is irreversible — keep the original around if you'll need it back.
よくある質問
どのケーススタイルがサポートされていますか?
このツールはcamelCase、PascalCase、snake_case、kebab-case、CONSTANT_CASE、Title Case、Sentence case、lower case、UPPER CASE、dot.case、path/caseに変換し、すべて1つの入力から一度に生成されます。
ツールは単語の境界をどのように検出しますか?
camelCaseとPascalCase内の大文字小文字の変化を検出し、XMLParserのような略語をXMLとParserに分割して処理し、文字にくっついた数字を分離して各単語を正しく識別します。
貼り付けたテキストはどこかに送信されますか?
いいえ、すべての変換はブラウザ内でJavaScriptを使って直接実行されます — サーバーには何も送信されません。
なぜコードの大文字小文字がそもそも重要なのですか?
ほとんどのプログラミング言語では、大文字小文字は技術的には実行に影響しません(大文字小文字を区別する識別子を除く)が、一貫したスタイルは可読性にとって重要であり、リンターやIDE、ドキュメント生成ツールは特定の種類のエンティティに対して特定のスタイルを期待することが多いためです。
変換後に元のテキストを復元できますか?
常に正確に復元できるわけではありません。元のテキストが大文字小文字混在だった場合、小文字や大文字への変換は不可逆です — どの文字がもともと大文字だったかという情報が失われるためです。