🔤

Naming Convention Converter

Convert identifiers between camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and Title Case
Naming case 📂 Text 👤 ToolWorld 🏷️ v1.2.2
Loading...
Input Paste or type text; it is processed locally
Name
Settings Choose how to process
Target style

Everything runs in the browser; your text is never uploaded

Enter text and press process. Everything runs locally; nothing is uploaded

Result Copy the result in one click

How to Use

📖 Tool Introduction


Convert an identifier between six naming styles: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and Title Case, splitting it into words automatically along the way.

Renaming things to match a convention is one of the small, constant chores of writing code. An API returns snake_case fields and the front end wants camelCase. A database column arrives as kebab-case and the constant it feeds has to be upper case. Doing it by hand is slow and easy to get wrong, particularly on long names where one missed word produces a variable that looks fine and points at nothing.

Word splitting is the part that decides whether the tool is worth using. Underscores and hyphens are obvious separators, but camelCase has none, so boundaries have to come from the case transitions: a lower letter followed by an upper one is a boundary, and so is a run of capitals followed by a capital and a lower letter. That second rule is what makes HTTPServer come apart as HTTP and Server instead of collapsing into a row of single letters, and it is the case a naive splitter gets wrong.

Each word is normalised before it is joined back together, so HELLO and hello both become Hello and then take whatever shape the target style asks for. Without that step the output inherits whatever capitalisation the input happened to have, which is rarely what anyone wants.

The result reports how many words were recognised and how long the output is, which is a quick way to confirm the split went the way you assumed. Everything runs in the browser, so the text you paste never leaves your device.

Consistency matters more than the choice itself. Most arguments about which style is better are settled by the language you are writing in: JavaScript and Java lean towards camelCase, Python and Ruby towards snake_case, CSS and HTML towards kebab-case, and constants in nearly every language towards upper case with underscores. Picking the one the surrounding code already uses is almost always the right answer, and a converter like this one exists so that following that convention costs you nothing rather than a few minutes of careful retyping.

✨ Key Features


  • Six styles: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and Title Case
  • Automatic word splitting, even when camelCase and separators are mixed
  • Consecutive capitals handled properly, so HTTPServer splits into HTTP and Server
  • Each word is normalised before joining, so messy input does not distort the output
  • Reports the number of words found and the result length
  • Runs locally: your text is never uploaded

🚀 How to Use


  1. Type a name on the left, such as hello world, helloWorld or hello_world
  2. Pick the target style on the right
  3. Press process, or use Ctrl plus Enter
  4. The result box shows the converted name and the word count
  5. Copy result puts it on your clipboard

⚠️ Things to Note


  • Data source: Based on the naming conventions common across language communities; conversion happens in the browser
  • Digits stay attached: Digits count as part of a word, so item2 is not split apart
  • Separators are dropped: Spaces, punctuation and other separators only split the input; they never appear in the output
  • Acronym boundaries: A split happens where a run of capitals is followed by a capital and a lower letter, so a bare acronym such as ID stays whole
  • Privacy: Everything runs in the browser. The text you paste is never sent to a server

Related

⏫︎