String Case Converter

    Convert text between camelCase, snake_case, PascalCase & more

    Instant Convert

    All formats at once as you type

    100% Private

    Runs entirely in your browser

    No Signup

    Free tool, no registration required

    String Case Conventions in Programming

    Different programming languages, frameworks, and style guides mandate different naming conventions. JavaScript and TypeScript prefer camelCase for variables and PascalCase for classes and components. Python prefers snake_case for variables and functions and PascalCase for classes. CSS uses kebab-case for property names and class selectors. Database column names often use snake_case, while HTTP headers use Title-Case. Converting between these conventions is a routine but tedious task that this tool automates.

    Case Formats Explained

    camelCase starts with a lowercase letter, with subsequent words capitalized: myVariableName. PascalCase (also called UpperCamelCase) capitalizes every word including the first: MyClassName. snake_case joins words with underscores, all lowercase: my_variable_name. SCREAMING_SNAKE_CASE is the all-uppercase variant used for constants: MAX_RETRY_COUNT. kebab-case uses hyphens and is common in URLs and CSS: my-component-name. dot.case and path/case appear in configuration keys and file paths respectively.

    Common Use Cases

    Renaming a database column to match a JSON API response format (snake_case → camelCase) is one of the most common uses. Generating CSS class names from component names, converting CSV headers for import scripts, normalizing user-supplied identifiers before storing them, and adapting code variables when porting between languages are all routine tasks. Code generators and scaffolding tools use these transformations to produce correctly-cased file names and identifiers from a single input.

    How to Use This Tool

    Paste any string — a sentence, a variable name, or a list of words — into the input. The tool detects word boundaries by splitting on spaces, underscores, hyphens, and case transitions, then presents the string in all supported formats simultaneously. Click the copy button next to any format to grab just that variant. Conversion happens instantly as you type, making it easy to experiment with different inputs.

    Frequently Asked Questions