Text Case Converter

Convert text between UPPERCASE, lowercase, Title Case, camelCase, snake_case and more. Free online tool.

About Text Case Converter

Convert text between different case formats instantly. Useful for developers (camelCase, snake_case, kebab-case) and writers (Title Case, Sentence case).

Video Tutorial

2:00

Video coming soon — full transcript available below

Chapters

Full transcript searchable
0:00

Why case conversion matters for developers

Welcome to this Text Case Converter tutorial. Different programming languages and ecosystems have strong naming conventions. JavaScript and TypeScript use camelCase for variables and functions. Python uses snake_case. CSS class names use kebab-case. Classes in most languages use PascalCase. Database columns often use snake_case or UPPER_SNAKE_CASE. When working across systems or converting designs to code, you constantly need to transform text between these formats.

0:22

Supported case formats

The Text Case Converter on ToolPilot.dev supports: UPPERCASE (all caps), lowercase (all lowercase), Title Case (first letter of each word capitalized), camelCase (first word lowercase, subsequent words capitalized with no spaces), PascalCase (all words capitalized with no spaces), snake_case (words separated by underscores, all lowercase), SCREAMING_SNAKE_CASE (snake case in all caps), kebab-case (words separated by hyphens), and sentence case (only first letter capitalized).

0:50

Convert between programming naming conventions

Paste your text into the input field. Click any case button to see the conversion instantly. The tool correctly handles word boundaries in all formats — splitting camelCase and PascalCase at capital letters, splitting kebab-case and snake_case at separators. So getUserById correctly becomes get_user_by_id in snake_case and Get-User-By-Id in kebab-case. Edge cases like acronyms such as URL, API, and HTTP are handled sensibly.

1:18

Batch convert multiple identifiers

For converting multiple identifiers at once — like a list of database column names to camelCase properties — paste all identifiers separated by newlines into the input. Choose the target case format. All identifiers convert simultaneously, each on its own line. This is useful when generating code from database schemas, renaming a set of variables for a refactor, or creating a mapping table between naming conventions.

1:48

Wrap-up

The Text Case Converter on ToolPilot.dev converts between 9 case formats instantly in your browser. No account, no installation, works on any device. For automated conversion in code, most languages have libraries: case-converter in Python, change-case in JavaScript. But for quick one-off conversions, this tool is the fastest option. Visit ToolPilot.dev for this and 19 other free developer tools.

Transcript covers all 5 chapters (2:00 total).

Frequently Asked Questions

What text case formats does this converter support?
The Text Case Converter supports: UPPERCASE, lowercase, Title Case, Sentence case, camelCase (firstName), PascalCase (FirstName), snake_case (first_name), kebab-case (first-name), and SCREAMING_SNAKE_CASE (FIRST_NAME).
What is camelCase and when is it used?
camelCase starts with a lowercase letter and capitalizes the first letter of each subsequent word (e.g., myVariableName). It is the standard naming convention for variables and functions in JavaScript, Java, and Swift.
What is snake_case and when is it used?
snake_case uses all lowercase letters with underscores between words (e.g., my_variable_name). It is the standard convention for Python variables, functions, and database column names.
What is kebab-case and when is it used?
kebab-case uses all lowercase letters with hyphens between words (e.g., my-component-name). It is used for URL slugs, CSS class names, HTML attributes, and file names in web projects.
What is PascalCase and when is it used?
PascalCase (also called UpperCamelCase) capitalizes the first letter of every word (e.g., MyComponentName). It is the standard for class names in most programming languages (Java, C#, Python, TypeScript) and React component names.
What is Title Case?
Title Case capitalizes the first letter of each major word in a phrase (e.g., 'The Quick Brown Fox'). Minor words like articles (a, an, the) and prepositions (in, of, at) are typically not capitalized in the middle of a title.
How do I convert a sentence to camelCase in JavaScript?
str.toLowerCase().replace(/[^a-zA-Z0-9]+(.)/g, (m, chr) => chr.toUpperCase()). Use the Text Case Converter to quickly convert without writing code.
What is SCREAMING_SNAKE_CASE?
SCREAMING_SNAKE_CASE uses all uppercase letters with underscores between words (e.g., MAX_RETRY_COUNT). It is the convention for constants and environment variables in most programming languages.
Can I convert database column names to camelCase for API responses?
Yes. Paste your snake_case database column names (user_first_name, order_total_amount) and convert them to camelCase (userFirstName, orderTotalAmount) for JSON API responses.

Code Examples

Ready-to-use implementations in popular programming languages. Copy, paste, and run.

Convert Text Case in JavaScript
const text = 'hello world example';

// Title Case
const title = text.replace(/\b\w/g, c => c.toUpperCase());

// camelCase
const camel = text.replace(/\s+(\w)/g, (_, c) =>
  c.toUpperCase());

// snake_case
const snake = text.replace(/\s+/g, '_').toLowerCase();

// kebab-case
const kebab = text.replace(/\s+/g, '-').toLowerCase();

console.log({ title, camel, snake, kebab });

Related Workflow Guides

Compare with alternatives