Skip to 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 without writing a single line of code.

How Case Conversion Works

Each format applies a distinct transformation rule to the input string. UPPERCASE maps every character to its capital form using Unicode uppercase rules. lowercase does the reverse. camelCase strips spaces and punctuation, lowercases the first word, then capitalizes the first letter of every following word (e.g., “order total amount” becomes “orderTotalAmount”). PascalCase does the same but also capitalizes the first word. snake_case replaces every space and special character with an underscore and lowercases all characters. kebab-case uses hyphens instead of underscores. Title Case capitalizes the first letter of every word above a short-word threshold (skipping “a”, “the”, “of”, etc.). Sentence case capitalizes only the very first character and proper nouns.

Worked Examples

Scenario 1 — Developer renaming a database column A backend developer needs to expose a SQL column called first_name as a JSON field. The API convention is camelCase, so first_name (snake_case) becomes firstName (camelCase). Paste the column list, convert, and copy in under 10 seconds.

Scenario 2 — Writer formatting article headlines A content editor receives draft headings in plain lowercase: “how to build a budget in 2025”. Title Case produces “How to Build a Budget in 2025” and Sentence case produces “How to build a budget in 2025”. The editor picks whichever matches the publication style guide.

Scenario 3 — CSS class name migration A design system is migrating from BEM (block__element—modifier in kebab-case) to a new framework that expects PascalCase component names. Pasting “hero-card—featured” and switching to PascalCase gives “HeroCardFeatured” — ready for the new import.

Case Format Reference Table

FormatExample OutputCommon Use
UPPERCASEHELLO WORLDConstants, headings, emphasis
lowercasehello worldEmail addresses, raw tokens
Title CaseHello WorldArticle titles, headings
Sentence caseHello worldUI labels, body text captions
camelCasehelloWorldJavaScript/TypeScript variables
PascalCaseHelloWorldClass names, React components
snake_casehello_worldPython variables, SQL columns
kebab-casehello-worldCSS classes, URL slugs
UPPER_SNAKE_CASEHELLO_WORLDConstants in most languages
aLtErNaTiNghElLo WoRlDMeme text, testing parsers

When to Use This Tool

  • You are switching a codebase between languages and need to rename 50+ variables from snake_case to camelCase in bulk
  • A style guide change requires converting all existing CSS class names from camelCase to kebab-case
  • You are writing titles or blog headings and need to confirm Title Case capitalization quickly
  • You need to format a list of database column names as JSON keys for an API response
  • You want to generate a URL slug from a plain-English heading — paste, convert to kebab-case, done

Common Mistakes

  1. Assuming PascalCase and Title Case are the same. Title Case preserves spaces and skips short words; PascalCase removes spaces entirely and capitalizes every word including “a”, “of”, and “the”.
  2. Using kebab-case in JavaScript variable names. Hyphens are subtraction operators in JS. my-variable evaluates as my minus variable. Use camelCase for variables and reserve kebab-case for CSS and URLs.
  3. Forgetting that UPPER_SNAKE_CASE differs from UPPERCASE. HELLOWORLD (UPPERCASE) and HELLO_WORLD (UPPER_SNAKE_CASE) are different tokens. Constants in most languages follow the snake variant.
  4. Mixing conventions within a single project. A codebase that uses both getUserData and get_user_data for similar functions is harder to search and maintain. Standardize before scaling.

Context and Applications

Text case formatting matters in three main areas. In software development, naming conventions are enforced by linters like ESLint (camelCase for JS), Pylint (snake_case for Python), and stylelint (kebab-case for CSS). Violating them triggers warnings that slow down code reviews. In content publishing, style guides — APA, Chicago, AP — each have slightly different Title Case rules. APA skips words under four letters; AP capitalizes all words of four or more letters. In SEO and URLs, search engines treat hyphens as word separators, so “best-running-shoes” is indexed as three words. Underscores are treated as word joiners, making “best_running_shoes” a single token. kebab-case is the correct choice for URL slugs.

Tips

  1. Paste an entire list of variable or column names separated by newlines to convert them all at once
  2. When migrating from Python to JavaScript, use snake_case → camelCase as a baseline, then check property names that start with numbers or contain symbols
  3. For CSS class names following BEM conventions, convert component names to kebab-case and use double hyphens for modifiers manually after conversion
  4. Title Case output here follows standard convention — if your style guide is APA or AP, verify the few edge-case words (prepositions four letters or longer) manually
  5. kebab-case slugs work best for SEO — convert your page title to kebab-case, strip stop words, and use the result as your URL path
  6. Save time by opening this page in a browser tab pinned alongside your code editor during refactoring sessions

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