LocalExcelTool
Get started

Naming Case Converter

Convert between camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE.

What is Naming Case Converter

A naming case converter converts identifiers between camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE. It splits mixed input into words and reassembles them in the chosen style.

🔒 Everything runs in your browser. Nothing is uploaded.

What this tool actually does with your file

Where it runs
In your browser, on this page
Upload
None — the file never leaves your device
Offline
Works with the network disconnected

Splitting an identifier into words is the whole problem

camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and dot.notation all encode the same word list, so the conversion is only as good as the tokeniser. This one splits on lower-to-upper boundaries, then on upper-run-to-word boundaries, then on separators — which is why parseHTMLDocument becomes parse, HTML, Document rather than parse, H, T, M, L, Document.

The acronym boundary is where naive implementations fail. A single regex for lower-followed-by-upper turns HTTPServer into H, T, T, P, Server or http, server depending on ordering. Getting it right needs two passes, and the second pass is specifically for uppercase runs followed by a lowercase letter.

Digits and existing separators

A digit next to a letter is ambiguous: utf8Decoder could be utf8 + decoder or utf + 8 + decoder, and both conventions exist in the wild. This implementation treats the digit as part of the preceding token, which matches the common Python and Go styles but not every codebase.

Mixed input — some_snake and someCamel in the same string — is accepted and normalised, because the splitter runs all the rules in sequence. That tolerance is useful when converting a CSV header row, where the columns were named by different people at different times.

What conversion cannot fix

Renaming a variable in a codebase is a refactor, not a string transform: the same word may appear in comments, log messages, JSON keys and a database column, and only one of those should change. Use this for generating a naming-convention table or converting a header row, not for a find-and-replace across a repository.

Also watch for collisions after conversion. user_id and userId and user-id all become user_id, so a table keyed on the converted name silently merges three distinct columns into one. Check for duplicate output before using it as a header row.

How to use

  1. 1.Enter an identifier
  2. 2.Pick a naming style
  3. 3.Copy the result

How this compares

There are three ways to do this conversion: in the browser (this page), through a server-side converter, or with a desktop app. The useful difference is not speed — it is where your file goes and how far the free tier actually reaches.

AspectThis toolUpload-based converters
Where the file is processedIn your browser, on this pageOn the vendor's servers, after an upload
Account requiredNoUsually — free tiers ask you to sign in before lifting a limit
Size you can process for freeNo size cap, no run limitA few files per hour, or a ~5–10 MB cap before a paywall
PriceFree. Pro is $9/month, and only buys larger files and AI featuresUsually a subscription — roughly $7–15/month as of November 2026
Works offlineYes, once the page has loadedNo
Time before work starts on a 20 MB fileImmediate — there is nothing to uploadDominated by the upload — about 16 s on a 10 Mbps uplink
What it cannot preserveNothing is stored, which also means a closed tab cannot be recoveredThe same — the conversion is the same maths

Server-side converters are genuinely better at some things: very large files, sharing results with a team, keeping a conversion history, and automating batches from a script. For the case in front of you — one file, one format change, right now — they mostly add an upload wait and a sign-up form.

Frequently asked questions

What input formats work?

Spaces, underscores, hyphens, camelCase, PascalCase and UPPER_CASE constants are all split into words automatically.

Does it handle non-Latin identifiers?

Scripts without word separators, such as Japanese-only input, are left as-is.

What this kind of conversion cannot keep

Text tools never leave the page: the string you paste is transformed in memory and written back to the result box. There is no request, no log and no retention, which also means there is no way to recover a value you closed the tab on.

More in Text