Ennadia
Text & Data

Case Converter

Rewrite a name in six naming conventions at once.

  • Local by default
  • No signup
  • AI is opt-in

Type a name or phrase; every convention updates as you type.

Splitting mixedCase, snake_case and acronyms is heuristic, not reversible: the original word boundaries are lost once a name is written as one token. Everything runs locally.

Paste a field name, a database column or a headline and get six common naming styles side by side: camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and Title Case. The split is shown as a word count so you can see where the heuristic guessed.

The six styles and where they live

  1. camelCase — first word lowercase, later words capitalised. The default for JSON fields and JavaScript variables.
  2. PascalCase — every word capitalised. Used for types, classes, React components and exported Go identifiers.
  3. snake_case — lowercase words joined by underscores. Common in Python modules, SQL column names and some REST APIs.
  4. kebab-case — lowercase words joined by hyphens. Standard in CSS class names, HTML attributes and URL slugs.
  5. CONSTANT_CASE — uppercase words joined by underscores. Used for environment variables and compile-time constants.
  6. Title Case — every word capitalised with spaces. Used for headings, labels and prose, not for code identifiers.

These are conventions, not rules enforced by a language. Nothing stops a Python project from using camelCase, but mixing styles inside one codebase makes search harder: user_id, userId and UserID are three different strings, and a grep for one will miss the others.

How the splitter reads a name

The input is first split on anything that is not a letter or a digit: spaces, underscores, hyphens, dots, slashes and punctuation. Within a token, two more boundaries are applied: a lowercase letter or digit followed by an uppercase letter, and a run of capitals followed by a capitalised word.

HTTPResponseTime  → HTTP Response Time
userProfileID    → user Profile ID
snake_case_name  → snake case name
v2Release        → v2 Release

The resulting words are lowercased or capitalised per style. This is why an all-caps acronym becomes a normal word in camelCase: HTTPResponseTime turns into httpResponseTime, not hTTPResponseTime.

Why the result is a guess

Case is information, and the splitter has to reconstruct boundaries that the original author never wrote down. HTTPServer is almost certainly "HTTP" plus "Server", but it could be "HTTP" plus "Server" or a project-specific acronym "HTTPS" plus "erver" — the string alone does not say. The heuristic picks the most common reading and moves on.

The same problem appears with digits and short words. user2FA can split as user2 FA or user 2FA. ID can be the word "id" or the abbreviation "ID"; camelCase will render it as Id, which is correct for a word but wrong for an acronym you intended to keep capitalised.

Treat the output as a draft. If a name contains a domain term that must stay intact, rename it by hand rather than trusting the heuristic. A glossary of accepted terms is more reliable than any case converter.

Matching the style to the ecosystem

  1. JSON and JavaScript: camelCase for fields and variables, PascalCase for types and components.
  2. Python and SQL: snake_case for columns, functions and modules; CONSTANT_CASE for module-level constants.
  3. CSS: kebab-case for classes and custom properties; camelCase is valid but reads wrong next to hyphens.
  4. Environment variables: CONSTANT_CASE, because shells and deployment platforms treat names case-sensitively and uppercase is the convention.
  5. URLs and file names: kebab-case, because it is readable and case-insensitive on some file systems.

When two systems meet, convert at the boundary rather than in both places. A Python service that reads a camelCase JSON API should map fields once, in the serialisation layer, instead of maintaining two spellings throughout the code.

When renaming breaks things

Converting a name is safe on a local variable and risky on anything that other people or systems depend on. A public API field, a database column, a URL segment and a file name are contracts. Renaming any of them requires a migration, a redirect or a compatibility window, not just a find-and-replace.

  1. Database columns: changing case can require a migration and may break queries in code you do not own.
  2. JSON APIs: clients deserialize by exact key; a renamed field silently becomes undefined.
  3. URLs: paths are case-sensitive on most servers, so /UserProfile and /user-profile are different resources.
  4. Environment variables: a renamed variable disappears for every deployment that still sets the old name.

Use the converter when you are creating a new identifier, not when you are renaming a published one. For published names, keep the old spelling and add the new one alongside it until consumers migrate.

Frequently asked questions

Why did HTTPServer become http_server instead of https_server?

The splitter uses the standard acronym boundary: a run of capitals followed by a capitalised word splits before the last capital. HTTP + Server is the intended reading. If you need a different split, insert a separator in the input, for example HTTP_Server.

Does it handle non-Latin text and accents?

Letters and digits are preserved, and separators are detected, so accented and non-Latin words survive the split. Case conversion for scripts without upper and lower case is a no-op. Transliteration and slug-safe ASCII output are not performed here.

Can it produce SCREAMING_SNAKE_CASE?

Yes. CONSTANT_CASE is the same style: uppercase words joined by underscores. It is the conventional form for environment variables and constants.

Why is ID rendered as Id in camelCase?

The converter treats each word as a normal word and lowercases or capitalises it. Acronyms are not preserved. If a domain term must stay uppercase, keep it in snake_case or constant case, or rename manually.

Does it keep digits and version numbers?

Digits are kept as part of the nearest word. user2FA can split as user2 + FA or user + 2FA depending on surrounding case. The word count under the input shows exactly how the split was made.

Is my input sent anywhere?

No. Splitting and formatting run in your browser with plain regular expressions. The page makes no network request while you type.