Skip to content

Case Converter - camelCase, snake_case & More

Input
Output

About the Case Converter

Different programming languages, style guides, and platforms expect different casing conventions. JavaScript favours camelCase for variables and PascalCase for classes. Python insists on snake_case. CSS uses kebab-case for class names. Database columns might be UPPER_CASE or snake_case depending on the team. Manually rewriting identifiers between these formats is slow and error-prone, especially when you have a long list. This tool converts text between eight common case formats instantly, right in your browser.

Supported Case Formats

  • camelCase. Words joined with no separator. The first word is lowercase, each subsequent word starts with a capital letter. Common in JavaScript and Java.
  • PascalCase. Like camelCase, but the first word also starts with a capital letter. Used for class names in C#, TypeScript, and React components.
  • snake_case. Words joined with underscores, all lowercase. The standard in Python, Ruby, and many database schemas.
  • kebab-case. Words joined with hyphens, all lowercase. Used for CSS class names, URL slugs, and CLI flags.
  • UPPER CASE. All letters capitalised with spaces between words. Useful for constants and headings.
  • lower case. All letters lowercase with spaces between words.
  • Title Case. The first letter of every word is capitalised. Common in headings, titles, and proper nouns.
  • Sentence case. Only the first letter of the first word is capitalised. Standard for body text and descriptions.

How to Use the Case Converter

Paste or type your text into the input area and select the target case format. The converted output appears instantly. Click the copy button to place the result on your clipboard. You can convert single identifiers, full sentences, or multi-line lists. Each line is processed independently, so line breaks are preserved.

Common Use Cases

Developers converting variable names when porting code between languages or matching a project's style guide. Front-end developers turning design tokens into CSS custom properties (kebab-case) or JavaScript constants (camelCase). Technical writers formatting headings in Title Case. Database administrators renaming columns to match a new naming convention. Content creators converting text to UPPER CASE for emphasis or lower case for normalisation. The tool handles all of these without requiring any install or sign-up.

Related Tools

Frequently Asked Questions

What case formats does this tool support?
The tool supports eight formats: camelCase (first word lowercase, subsequent words capitalised with no separator), PascalCase (every word capitalised with no separator), snake_case (all lowercase with underscores), kebab-case (all lowercase with hyphens), UPPER CASE (all letters capitalised with spaces), lower case (all letters lowercase with spaces), Title Case (first letter of each word capitalised), and Sentence case (only the first letter of the first word capitalised).
Can I use this tool to rename variables in code?
Yes. The tool is particularly useful for converting between naming conventions used in different programming languages. For example, JavaScript typically uses camelCase, Python uses snake_case, CSS class names use kebab-case, and C# uses PascalCase. Paste your identifier, pick the target format, and copy the result.
Is my text sent to a server?
No. All conversions happen entirely in your browser using JavaScript. Your text is never transmitted, stored, or logged anywhere. Close the tab and the data is gone.
Does the tool handle multi-line text?
Yes. Each line is converted independently, preserving line breaks in the output. This makes it easy to convert a list of variable names, CSS classes, or database column names in a single operation. Paste your list, choose the target case, and copy the converted result.