text

Text Case Converter

Convert text between camelCase, snake_case, kebab-case, PascalCase, and 7 other naming conventions.

Text Case Converter

Convert text between camelCase, snake_case, kebab-case, PascalCase, and 7 other naming conventions.

What is this?

Naming conventions define how words are combined into identifiers in code, configuration files, APIs, and databases. camelCase (myVariable) is the standard in JavaScript and Java. snake_case (my_variable) is the norm in Python, Ruby, and SQL. kebab-case (my-variable) is used in CSS, HTML attributes, and URL slugs. PascalCase (MyVariable) is used for class names and React components across most languages. SCREAMING_SNAKE_CASE (MY_VARIABLE) marks constants. Different tools, frameworks, and languages enforce different conventions, so converting between them is a constant need when writing glue code, generating API clients, or adapting data from one system to another. This tool splits any identifier or phrase into its component words — intelligently handling camelCase boundaries, underscores, hyphens, and dots — then reassembles them in the target convention.

How to use

  1. Paste the identifier or phrase: Enter any identifier or multi-word phrase. The tool automatically splits on whitespace, underscores, hyphens, dots, and camelCase/PascalCase word boundaries — so you can convert from any format to any other in one step.
  2. Select the target case: Choose from 11 naming conventions: camelCase, PascalCase, snake_case, SCREAMING_SNAKE_CASE, kebab-case, COBOL-CASE, dot.case, Title Case, Sentence case, lowercase, or UPPERCASE.
  3. Copy the result: The converted identifier appears instantly. The 'tokens' field shows the words extracted from your input — useful for verifying the split was correct before using the output in code.

FAQ

How does the tool split compound words like 'innerHTML' or 'XMLParser'?
camelCase splitting uses two regex passes: first it inserts a space before any lowercase-to-uppercase transition (innerHTML → inner Html), then before any sequence of uppercase letters followed by an uppercase-then-lowercase transition (XMLParser → XML Parser). Both passes together correctly split 'XMLParser' into ['xml', 'parser'] and 'innerHTML' into ['inner', 'html'].
Does the tool preserve acronyms like 'URL' or 'HTTP'?
Acronyms are lowercased as part of tokenisation and then recased according to the target convention. In camelCase, 'parseURL' becomes 'parseUrl'; in PascalCase it becomes 'ParseUrl'. If your codebase uses a style guide that keeps acronyms uppercase (e.g. 'parseURL'), apply the conversion and then manually restore the acronym casing.
Can I convert multiple identifiers at once?
This tool converts one identifier per call. For bulk conversion in a script, use the REST API: POST /api/text-case-converter with each identifier. In Node.js, you can also use the 'change-case' npm package for programmatic bulk conversion.

What is Text Case Converter?

Naming conventions define how words are combined into identifiers in code, configuration files, APIs, and databases. camelCase (myVariable) is the standard in JavaScript and Java. snake_case (my_variable) is the norm in Python, Ruby, and SQL. kebab-case (my-variable) is used in CSS, HTML attributes, and URL slugs. PascalCase (MyVariable) is used for class names and React components across most languages. SCREAMING_SNAKE_CASE (MY_VARIABLE) marks constants. Different tools, frameworks, and languages enforce different conventions, so converting between them is a constant need when writing glue code, generating API clients, or adapting data from one system to another. This tool splits any identifier or phrase into its component words — intelligently handling camelCase boundaries, underscores, hyphens, and dots — then reassembles them in the target convention.

How to use Text Case Converter

  1. Paste the identifier or phrase: Enter any identifier or multi-word phrase. The tool automatically splits on whitespace, underscores, hyphens, dots, and camelCase/PascalCase word boundaries — so you can convert from any format to any other in one step.
  2. Select the target case: Choose from 11 naming conventions: camelCase, PascalCase, snake_case, SCREAMING_SNAKE_CASE, kebab-case, COBOL-CASE, dot.case, Title Case, Sentence case, lowercase, or UPPERCASE.
  3. Copy the result: The converted identifier appears instantly. The 'tokens' field shows the words extracted from your input — useful for verifying the split was correct before using the output in code.

Frequently asked questions

How does the tool split compound words like 'innerHTML' or 'XMLParser'?
camelCase splitting uses two regex passes: first it inserts a space before any lowercase-to-uppercase transition (innerHTML → inner Html), then before any sequence of uppercase letters followed by an uppercase-then-lowercase transition (XMLParser → XML Parser). Both passes together correctly split 'XMLParser' into ['xml', 'parser'] and 'innerHTML' into ['inner', 'html'].
Does the tool preserve acronyms like 'URL' or 'HTTP'?
Acronyms are lowercased as part of tokenisation and then recased according to the target convention. In camelCase, 'parseURL' becomes 'parseUrl'; in PascalCase it becomes 'ParseUrl'. If your codebase uses a style guide that keeps acronyms uppercase (e.g. 'parseURL'), apply the conversion and then manually restore the acronym casing.
Can I convert multiple identifiers at once?
This tool converts one identifier per call. For bulk conversion in a script, use the REST API: POST /api/text-case-converter with each identifier. In Node.js, you can also use the 'change-case' npm package for programmatic bulk conversion.

API: POST https://quickhelp.dev/api/text-case-converter — JSON in, JSON out. See OpenAPI spec or llms.txt.

We use cookies to serve ads and measure traffic. Cookie policy · Privacy policy