Case Converter
Convert text between camelCase, snake_case, PascalCase, kebab-case, and more
What is Case Converter?
Naming conventions vary across programming languages, frameworks, and contexts: JavaScript variables use camelCase, Python functions use snake_case, CSS classes use kebab-case, database columns often use snake_case, React components use PascalCase, and constants use SCREAMING_SNAKE_CASE. When you are renaming variables across a codebase, converting API field names between languages, transforming column names for a different database, or following a new team's style guide, manually converting dozens of names is tedious and error-prone. Our free Case Converter instantly transforms any text between all major naming conventions: camelCase (firstName), PascalCase (FirstName), snake_case (first_name), SCREAMING_SNAKE_CASE (FIRST_NAME), kebab-case (first-name), dot.case (first.name), UPPER CASE (FIRST NAME), lower case (first name), Title Case (First Name), and Sentence case (First name). Paste a list of names and convert the entire batch at once — the tool processes multi-line input, applying the selected case to each line independently.
How to Use Case Converter
- 1
Paste Your Text
Enter one or more words, phrases, variable names, or column names. For batch conversion, put each item on its own line.
- 2
Select the Target Case
Choose from camelCase, PascalCase, snake_case, SCREAMING_SNAKE_CASE, kebab-case, dot.case, UPPER, lower, Title Case, or Sentence case using the format buttons.
- 3
Copy the Converted Output
The converted text appears instantly. Copy it to your clipboard and paste it directly into your code editor, database schema, config file, or documentation.
Use Cases
Converting API Response Fields to JavaScript Variable Names
REST APIs from Python or Ruby backends return snake_case fields (first_name, created_at). JavaScript conventions use camelCase (firstName, createdAt). Paste the list of API field names here, convert to camelCase, and use the output to quickly write the mapping or transformation layer in your frontend code.
Preparing Database Column Names for a New Schema
When migrating a database or creating a new schema based on an existing JSON structure, column names need to follow the target database's conventions. Convert camelCase API field names to snake_case database column names here, then use the output to write your CREATE TABLE statement or ORM model definition.
Generating CSS Class Names from Component Names
When converting a design system from PascalCase component names (ButtonPrimary, CardHeader) to BEM-style CSS class names (.button-primary, .card-header), convert the component names here using kebab-case mode to generate the correct CSS class names for your stylesheet.
Features
10 Naming Conventions Supported
Converts between camelCase, PascalCase, snake_case, SCREAMING_SNAKE_CASE, kebab-case, dot.case, UPPER CASE, lower case, Title Case, and Sentence case.
Batch Conversion
Process multiple names at once — paste a list with one item per line and all are converted simultaneously, saving time when renaming fields, columns, or variables in bulk.
Smart Word Boundary Detection
Correctly splits input regardless of current format — spaces, underscores, hyphens, and camelCase boundaries are all recognised as word separators.
Instant Results
Conversion happens in real time as you type and select different case formats — no button press needed after the initial paste.
Frequently Asked Questions
camelCase writes compound words with each word starting in uppercase except the first: firstName, getUserById, isAuthenticated. It is the standard naming convention for variables, functions, and methods in JavaScript, TypeScript, Java, C#, Swift, and Kotlin. It is called "camelCase" because the uppercase letters resemble the humps of a camel.
camelCase starts with a lowercase letter: firstName, getUserData. PascalCase (also called UpperCamelCase) starts with an uppercase letter: FirstName, GetUserData. In most languages, camelCase is used for variables and functions while PascalCase is used for classes, interfaces, components, and type names. In React, component names must be PascalCase so JSX can distinguish them from HTML tags.
snake_case (underscores) is the convention in Python functions and variables, Ruby variables, database column names (SQL), and many configuration file keys. kebab-case (hyphens) is the convention for CSS class names, HTML attributes, URL paths, and npm package names. The main practical difference: underscores are valid in most programming language identifiers while hyphens are not (- is the subtraction operator).
SCREAMING_SNAKE_CASE (all uppercase with underscores) is the conventional format for constants and environment variables in most programming languages. Python uses it for module-level constants (MAX_RETRIES = 3), JavaScript/TypeScript uses it for const declarations that represent fixed values (API_BASE_URL), and shell environments use it for environment variables (DATABASE_URL, NODE_ENV). The all-caps visual signal communicates "this value never changes".
The converter splits input into words using multiple boundary detectors: spaces and whitespace, underscores, hyphens, and camelCase/PascalCase transitions (a lowercase letter followed by an uppercase letter). This means "firstName", "first_name", "first-name", and "First Name" all correctly split into the two words "first" and "name" before applying the target case transformation.
Need a Professional Website?
JAIDOO EMPIRE builds fast, SEO-optimised websites for businesses worldwide. All free tools are built and maintained by our team.
Start Your Project






