Stax

Text Case Converter

Convert text to camelCase, PascalCase, snake_case, kebab-case, and more.

UPPER CASE
lower case
Title Case
Sentence case
camelCase
PascalCase
snake_case
kebab-case
CONSTANT_CASE
dot.case

When to use each case

  • camelCase: JavaScript/TypeScript variables and functions
  • PascalCase: class names, React components, TypeScript types
  • snake_case: Python variables, Ruby, database column names
  • kebab-case: CSS class names, URL slugs, HTML attributes
  • CONSTANT_CASE: environment variables, config constants
  • dot.case: configuration keys, Java packages
  • Title Case: headings, book titles, product names
  • Sentence case: UI labels, descriptions, body text

Why case matters in programming

Most programming languages are case-sensitive — myVariable and MyVariable are two completely different identifiers. Following the naming convention of your language and codebase is essential for consistency and readability. This tool lets you quickly reformat any string to match any convention without manual editing.

Frequently asked questions

What is camelCase?
camelCase starts with a lowercase letter and capitalizes the first letter of each subsequent word with no spaces or separators. Example: 'hello world' → 'helloWorld'. Used in JavaScript variables and function names.
What is PascalCase?
PascalCase (also called UpperCamelCase) capitalizes the first letter of every word including the first one. Example: 'hello world' → 'HelloWorld'. Used for class names in most languages.
What is snake_case vs kebab-case?
snake_case joins words with underscores: 'hello_world'. Used in Python variables, database columns, and file names. kebab-case joins words with hyphens: 'hello-world'. Used in CSS classes, HTML attributes, and URL slugs.
What is CONSTANT_CASE?
CONSTANT_CASE (also called SCREAMING_SNAKE_CASE) is all uppercase with underscores. Example: 'api key' → 'API_KEY'. Used for constants in most programming languages.

Related tools