Case Converter
Convert identifiers between the eight naming conventions you actually encounter. Useful when moving a schema between a JSON API and a Python backend, or renaming across languages with different conventions.
Runs entirely in your browser. Nothing you paste is uploaded.
Converted text will appear here...
About the Case Converter
The conventions cluster by ecosystem: camelCase in JavaScript and Java, snake_case in Python, Ruby and SQL, kebab-case in URLs, CSS and CLI flags, PascalCase for types and classes nearly everywhere, and CONSTANT_CASE for environment variables and compile-time constants.
Acronyms are where converters disagree. parseJSONResponse can legitimately become parse_json_response or parse_j_s_o_n_response depending on whether the tool treats consecutive capitals as one word. This one keeps acronyms intact.
Frequently asked questions
What is the difference between camelCase and PascalCase?
Only the first letter. camelCase starts lowercase and is used for variables and functions; PascalCase starts uppercase and is used for classes and types.
Which case should I use in URLs?
kebab-case. It is readable, unambiguous with case-insensitive servers, and the convention search engines expect in slugs.
How are acronyms handled?
Consecutive capitals are treated as a single word, so parseJSONResponse becomes parse_json_response rather than splitting each letter.