🔡 Case Converter

Convert text to UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case and more — instantly, free, no login.

FreeNo LoginBrowser-BasedPrivate

What is a Case Converter?

A case converter is a tool that transforms text between different capitalization formats. In programming and writing, capitalization conventions — called "naming conventions" in code — carry specific meaning. Using the wrong case format in code can cause errors; using the wrong case in professional writing can undermine credibility. This tool supports 10 different case formats used across writing, development, and design.

Developers use case converters constantly when refactoring code (renaming variables to match style guides), migrating between programming languages with different conventions, or converting content from spreadsheets or databases into code-friendly identifiers. Writers use them for consistent heading capitalization across long documents.

All 10 Case Formats — Quick Reference

Format Example Used In
UPPERCASEHELLO WORLDHeadings, emphasis, acronyms
lowercasehello worldURLs, usernames, email addresses
Title CaseHello WorldArticle titles, book names, headings
Sentence caseHello worldBody text, UI labels, buttons
camelCasehelloWorldJS/Java/C# variables & functions
PascalCaseHelloWorldClass names, React components
snake_casehello_worldPython, Ruby, SQL columns
kebab-casehello-worldCSS classes, URL slugs, HTML
CONSTANT_CASEHELLO_WORLDConstants in all languages
aLtErNaTehElLo wOrLdMocking text, social media humor

Which Case Convention Does Each Programming Language Use?

Every major programming language has an official or community-standard naming convention. Using the wrong case in a professional codebase marks you as a junior developer — and in some languages (like Python, whose PEP 8 guide is enforced by linters), the wrong case will trigger automated warnings. Here is a definitive guide:

  • JavaScript / TypeScript: camelCase for variables and functions; PascalCase for classes and React components; CONSTANT_CASE for constants
  • Python: snake_case for variables and functions (mandated by PEP 8); PascalCase for classes; CONSTANT_CASE for module-level constants
  • Java / Kotlin: camelCase for variables and methods; PascalCase for classes; CONSTANT_CASE for static final constants
  • CSS / HTML: kebab-case for class names and IDs; lowercase for element names and attributes
  • SQL: snake_case for table and column names (most style guides); UPPERCASE for SQL keywords (SELECT, FROM, WHERE)
  • PHP: snake_case for variables and functions; PascalCase for classes (PSR-1 standard)
  • Go (Golang): camelCase for unexported (private) identifiers; PascalCase for exported (public) identifiers

Frequently Asked Questions

What is camelCase and when should I use it?

camelCase writes compound words with no spaces, with the first word in lowercase and each subsequent word starting with uppercase — e.g., myVariableName. It is standard for variables and functions in JavaScript, Java, C#, and Swift. Named after the uppercase letters resembling camel humps.

What is the difference between camelCase and PascalCase?

Both use uppercase letters to mark word boundaries with no spaces. The difference is the first letter: camelCase starts lowercase (myFunction), PascalCase starts uppercase (MyFunction). PascalCase is standard for class names and constructors in most languages.

What is snake_case used for?

snake_case writes lowercase words separated by underscores — e.g., user_name. It is the dominant convention in Python (mandated by PEP 8), Ruby, PHP, SQL column names, and Linux file systems. CONSTANT_CASE (all uppercase) is used for constants.

What is kebab-case and where is it used?

kebab-case writes lowercase words separated by hyphens — e.g., my-component. Used in CSS class names, HTML attributes, URL slugs, and Vue/React file names. It cannot be used as a variable name in most languages because hyphens are interpreted as minus operators.

What is Title Case vs Sentence case?

Title Case capitalizes the first letter of every word — used in article and book titles. Sentence case capitalizes only the first word and proper nouns — used in body text and UI labels. Google's Material Design guidelines recommend Sentence case for UI buttons and labels for better readability.

Related Tools