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.

Case Converter: Example Calculation

Using Your Text: Hello World Example Text:

The estimated UPPERCASE is HELLO WORLD EXAMPLE TEXT.

Result Value
UPPERCASE HELLO WORLD EXAMPLE TEXT
lowercase hello world example text
Title Case Hello World Example Text
Sentence case Hello world example text
camelCase helloWorldExampleText
PascalCase HelloWorldExampleText
snake_case hello_world_example_text
kebab-case hello-world-example-text
aLtErNaTiNg hElLo WoRlD eXaMpLe TeXt

Adjust the values in the calculator above for your own scenario.

Loading calculator

Preparing Case Converter...

Reviewed & Methodology

Every calculator is built using industry-standard formulas, validated against authoritative sources, and reviewed for accuracy against our published methodology. 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

Format Example Output Common Use
UPPERCASE HELLO WORLD Constants, headings, emphasis
lowercase hello world Email addresses, raw tokens
Title Case Hello World Article titles, headings
Sentence case Hello world UI labels, body text captions
camelCase helloWorld JavaScript/TypeScript variables
PascalCase HelloWorld Class names, React components
snake_case hello_world Python variables, SQL columns
kebab-case hello-world CSS classes, URL slugs
UPPER_SNAKE_CASE HELLO_WORLD Constants in most languages
aLtErNaTiNg hElLo WoRlD Meme 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.

Embed this calculator

Add this free calculator to your website. Copy the code below and keep the attribution link - it's what keeps these tools free:

Cite this calculator

Copy this citation for papers, articles, or coursework:

Alex Crabinsky. "Case Converter." Numeraty, February 23, 2026, https://numeraty.com/case-converter/

Related Unit Converters Calculators

Unit Converters

Acceleration Converter

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

Unit Converters

Angle Converter

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

Unit Converters

Area Converter

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

Unit Converters

Clothing Size Converter

Free Clothing Size Converter - convert between US, EU, UK, and Asian clothing sizes for men and women. Compare international size charts for tops, dresses, pants, and outerwear when shopping online.

Unit Converters

Color Converter

Free Color Converter - convert between HEX, RGB, HSL, and HSV color formats instantly. Essential for web developers and designers working with CSS, design tools, and accessibility-compliant color palettes.

Unit Converters

Cooking Converter

Free Cooking Converter - convert cups to grams, tablespoons to milliliters, ounces to grams, and more. Instantly translate between US, metric, and UK cooking measurements for accurate recipes.

Unit Converters

Currency Converter

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

Unit Converters

Data Storage Converter

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

Unit Converters

Data Transfer Converter

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

Unit Converters

Density Converter

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

Unit Converters

Energy Converter

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

Unit Converters

Flow Converter

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

Calculators