Text Case Converter -- Uppercase, camelCase & More

Convert text between uppercase, lowercase, title case, camelCase, snake_case, kebab-case, PascalCase, and more

Your Text
0 characters 0 words 0 lines
Result: UPPERCASE
✨
Start typing above to see the conversion

About Text Case Converter

This text case converter is a free tool that converts text between 11 different case styles instantly. Type or paste your text above, select a case style, and the result appears in real time β€” no button clicking needed. All processing happens in your browser; no data is sent to any server.

All Supported Case Styles

UPPERCASE

Input: "hello world"
β†’ HELLO WORLD

lowercase

Input: "HELLO WORLD"
β†’ hello world

Title Case

Input: "hello world"
β†’ Hello World

Sentence case

Input: "hello. how are you?"
β†’ Hello. How are you?

camelCase

Input: "get user name"
β†’ getUserName

PascalCase

Input: "get user name"
β†’ GetUserName

snake_case

Input: "Get User Name"
β†’ get_user_name

kebab-case

Input: "Get User Name"
β†’ get-user-name

CONSTANT_CASE

Input: "max retry count"
β†’ MAX_RETRY_COUNT

dot.case

Input: "my config value"
β†’ my.config.value

tOGGLE cASE

Input: "Hello World"
β†’ hELLO wORLD

Which Case to Use Where

  • camelCase β€” Variables and functions in JavaScript, Java, TypeScript, Go
  • PascalCase β€” Class names, React/Vue components, C# methods
  • snake_case β€” Python variables and functions, Ruby, database columns, file names
  • kebab-case β€” CSS class names, URL slugs, HTML attributes, CLI flags
  • CONSTANT_CASE β€” Constants, environment variables, enum values in most languages
  • dot.case β€” Java package names, configuration keys, property paths
  • Title Case β€” Headings, email subjects, article titles
  • UPPERCASE β€” Acronyms, emphasis, headers, SQL keywords
  • lowercase β€” Data normalization, email addresses, search indexing
  • Sentence case β€” Body text, UI labels, button text

Frequently Asked Questions

What is camelCase?

camelCase is a naming convention where the first word is lowercase and each subsequent word starts with an uppercase letter, with no spaces or separators. Example: helloWorld or getUserName. It is the standard naming style for variables and functions in JavaScript, Java, and many other languages.

What is the difference between camelCase and PascalCase?

camelCase starts with a lowercase letter (e.g., myVariable), while PascalCase starts with an uppercase letter (e.g., MyVariable). PascalCase is also called UpperCamelCase. Use PascalCase for class names and component names; use camelCase for variables and function names.

What is snake_case?

snake_case replaces spaces with underscores and converts all letters to lowercase. Example: hello_world or get_user_name. It is the standard naming convention in Python, Ruby, and database column names.

What is kebab-case?

kebab-case (also called dash-case or lisp-case) replaces spaces with hyphens and converts all letters to lowercase. Example: hello-world or my-component. It is commonly used in CSS class names, URL slugs, and HTML attributes.

What is CONSTANT_CASE?

CONSTANT_CASE (also called SCREAMING_SNAKE_CASE) converts all letters to uppercase and replaces spaces with underscores. Example: MAX_RETRY_COUNT or API_BASE_URL. It is the standard for constants and environment variables in most programming languages.

Which case style should I use for programming?

It depends on the language and context:

  • JavaScript / Java / TypeScript: camelCase for variables and functions, PascalCase for classes and components
  • Python / Ruby: snake_case for variables and functions, PascalCase for classes
  • CSS: kebab-case for class names
  • Constants: CONSTANT_CASE in most languages
  • URLs: kebab-case for slugs

Follow your project's style guide for consistency.

How do I convert camelCase to snake_case?

Insert an underscore before each uppercase letter, then convert everything to lowercase. For example, getUserName becomes get_user_name. This converter handles it automatically β€” paste your camelCase text and select snake_case.

What is dot.case used for?

dot.case replaces spaces with periods and converts all letters to lowercase. Example: my.config.value. It is commonly used in Java package names (e.g., com.example.app), configuration file keys, and property path notation.

Can I convert between any two case styles?

Yes. This converter intelligently splits text on spaces, underscores, hyphens, dots, and camelCase boundaries. That means you can paste getUserName, get_user_name, get-user-name, or Get User Name and convert to any target case.

Does this tool store my text?

No. All conversions run entirely in your browser using JavaScript. No text is sent to any server, and nothing is stored or tracked.

Learn More

For a deeper dive into when and why to use each naming convention β€” with language-specific style guide references, acronym handling rules, and common mistakes β€” read our guide: Text Case Conventions Explained: camelCase, snake_case, kebab-case & More.

Privacy & Limitations

  • All calculations run entirely in your browser -- nothing is sent to any server.
  • Results are estimates and may vary based on actual conditions.

Related Tools

Related Tools

View all tools
Request a New Tool
Improve This Tool