String Case Converter

Convert text between different naming conventions (camelCase, snake_case, kebab-case, etc.)

Enter text to convert (e.g., 'hello world', 'helloWorld', 'hello_world')
Loading editor...
camelCase
-
PascalCase
-
snake_case
-
CONSTANT_CASE
-
kebab-case
-
dot.case
-
path/case
-
Capital Case
-
Sentence case
-
Train-Case
-
no case
-

Text Case Converter — Convert Text to Any Case Format

Understanding the Basics

Naming conventions — the rules governing how identifiers, variables, file names, and display text are formatted — vary significantly across programming languages, frameworks, database systems, and style guides. JavaScript and TypeScript use camelCase for variable and function names, PascalCase (UpperCamelCase) for class and component names, and SCREAMING_SNAKE_CASE for constants. Python uses snake_case for variables and functions, PascalCase for classes, and UPPER_CASE for constants. Databases often use lower_case (snake_case) for column and table names. HTTP headers use Title-Kebab-Case. CSS properties use kebab-case. File naming conventions range from kebab-case (URL slugs, npm packages) to PascalCase (React component files) to snake_case (Python modules). When translating concepts between systems — generating database column names from API field names, creating URL slugs from titles, converting GraphQL field names to database columns, or normalizing text for search indexing — automated case conversion is indispensable. Standardizing text cases ensures clean integrations across codebases, database schemas, and documentation sets. Our case converter handles 12+ distinct cases including camelCase, PascalCase, snake_case, kebab-case, SCREAMING_SNAKE_CASE, Title Case, Sentence case, dot.case, slash/case, and more.

How to Use the Tool

  1. Type or paste your text into the input field.
  2. The tool detects word boundaries automatically: it recognizes existing camelCase, snake_case, spaces, and kebab-case as separators.
  3. Click the target case format button (camelCase, snake_case, kebab-case, etc.) to convert.
  4. The converted text appears instantly in the output field.
  5. Click any other case button to convert again — the original input is preserved for re-conversion.

Key Features & Specifications

  • Converts between 12+ naming conventions: camelCase, PascalCase, snake_case, kebab-case, SCREAMING_SNAKE_CASE, Title Case, Sentence case, dot.case, and more
  • Smart word boundary detection from camelCase, spaces, dashes, underscores, and dots
  • Handles acronyms and abbreviations (HTML, URL, ID) with configurable behavior
  • Batch conversion: process multiple lines simultaneously
  • Preserves non-alphabetic characters (digits, punctuation) at appropriate positions

Frequently Asked Questions (FAQ)

Q:How does the tool detect word boundaries in my input text?
The converter uses the change-case library, which splits words at: transitions from lowercase to uppercase (camelCase boundaries), underscore characters, hyphen/dash characters, spaces, and dots. This means it correctly handles mixed-case input like "myURLParser" → my, URL, Parser, splitting them into logical segments.
Q:What is the difference between camelCase and PascalCase?
Both formats capitalize the first letter of each word except they differ at the start: camelCase starts with a lowercase letter (userId, parseJSON), while PascalCase starts with an uppercase letter (UserId, ParseJSON). PascalCase is also called UpperCamelCase.
Q:How does the converter handle abbreviations like "URL" or "API"?
When converting "myURLParser" to snake_case, the converter produces "my_url_parser" treating each uppercase letter transition as a word boundary. All-caps abbreviations like URL become a single lowercase word ("url") rather than individual letters ("u_r_l").