Skip to main content

Case Converter

Free Case Converter - calculate instantly with our online tool. No signup required. Accurate unit converters calculations with real-time results.

Loading calculator

Preparing Case Converter...

Reviewed & Methodology

Every calculator is built using industry-standard formulas, validated against authoritative sources, and reviewed by a credentialed financial professional. All calculations run privately in your browser - no data is stored or shared.

Last reviewed:

Reviewed by:

Written by:

How to Use the Case Converter

  1. 1. Enter a value in the "From" field to begin your conversion.
  2. 2. Select your units - choose the source and target units from the dropdown menus.
  3. 3. View instant results - the conversion updates automatically as you type.
  4. 4. Swap direction - click the swap button to reverse the conversion.
  5. 5. Share your results - copy the link to save or share your conversion.

Case Converter

Instantly convert any text between nine popular formats: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, and aLtErNaTiNg case. Type or paste your text and every conversion appears at once — perfect for developers, writers, and anyone who needs to reformat strings quickly.

How Case Conversion Works

Each format follows specific rules. UPPERCASE transforms every character to its capital form. camelCase removes spaces and capitalizes each word after the first. snake_case replaces spaces with underscores and lowercases everything. kebab-case replaces spaces with hyphens. Title Case capitalizes the first letter of every word, while Sentence case capitalizes only the first letter of each sentence.

Example

Input TextUPPERCASEcamelCasesnake_casekebab-case
hello world exampleHELLO WORLD EXAMPLEhelloWorldExamplehello_world_examplehello-world-example
My Project NameMY PROJECT NAMEmyProjectNamemy_project_namemy-project-name
user first nameUSER FIRST NAMEuserFirstNameuser_first_nameuser-first-name

Key Factors When Choosing a Case Format

  • Programming language — JavaScript and Java favor camelCase, Python uses snake_case, CSS uses kebab-case
  • URLs and file names — kebab-case is preferred for SEO-friendly URLs and readable file names
  • Database columns — snake_case is the convention in SQL and most ORMs
  • Display text — Title Case works best for headings, Sentence case for body text
  • API conventions — REST APIs commonly use camelCase for JSON fields and kebab-case for endpoints

Tips

  1. Paste code variable names directly to quickly reformat between naming conventions
  2. Use the converter when migrating code between languages (e.g., Python snake_case to JavaScript camelCase)
  3. For CSS class names, convert from camelCase to kebab-case to follow BEM or standard CSS conventions
  4. Bookmark this page for quick access whenever you need to standardize text formatting across a project

Frequently Asked Questions

What is the difference between camelCase and snake_case?
In camelCase, words are joined without separators and each word after the first is capitalized (e.g., myVariableName). In snake_case, words are separated by underscores and all lowercase (e.g., my_variable_name). CamelCase is the standard in JavaScript, Java, C#, and TypeScript. Snake_case is the convention in Python, Ruby, Rust, and SQL databases. Choosing the right case for your language improves code readability and consistency.
What are the conventions for different programming languages?
JavaScript and Java use camelCase for variables and PascalCase for classes. Python uses snake_case for variables/functions and PascalCase for classes. CSS and HTML use kebab-case for class names and attributes. Ruby uses snake_case everywhere. Go uses camelCase for private and PascalCase for exported names. Constants are typically UPPER_SNAKE_CASE across most languages. Following these conventions makes code more readable to other developers.
How does text formatting differ between title case and sentence case?
Title Case capitalizes the first letter of every major word (e.g., 'The Quick Brown Fox Jumps Over the Lazy Dog'), while Sentence case only capitalizes the first word and proper nouns (e.g., 'The quick brown fox jumps over the lazy dog'). Title case is used for headings, book titles, and article headlines. Sentence case is used for body text, captions, and button labels in modern UI design.
What are the rules for proper title case?
In standard title case (APA/Chicago style), capitalize all words except short prepositions (in, on, at, to), articles (a, an, the), and short conjunctions (and, but, or) unless they are the first or last word. Always capitalize the first and last word regardless of part of speech. Examples: 'A Tale of Two Cities', 'The Art of War'. Some style guides (AP) capitalize all words of four or more letters. Always check which style guide your project follows.
When should I use kebab-case versus other formats?
Kebab-case (words-separated-by-hyphens) is the standard for CSS class names and custom HTML attributes because CSS and HTML are case-insensitive and hyphens are natural word separators. It is also preferred for URL slugs (my-blog-post) because search engines treat hyphens as word separators, improving SEO. File names in web projects often use kebab-case for consistency. Avoid kebab-case in most programming variables since the hyphen is interpreted as a minus operator.

Explore More Unit Converters Tools

Temperature Converter: Try our free temperature converter for instant results.

Length Converter: Try our free length converter for instant results.

Weight Converter: Try our free weight converter for instant results.

Volume Converter: Try our free volume converter for instant results.

Area Converter: Try our free area converter for instant results.

Speed Converter: Try our free speed converter for instant results.

Calculators