PublicSoftTools
Tools16 min read·PublicSoftTools Team·May 2026

Case Converter — Convert Text Case Online

Text case matters in coding, writing, and data processing. A variable named userId is camelCase; user_id is snake_case; UserId is PascalCase — different conventions for different languages and contexts. The free case converter on PublicSoftTools converts any text between uppercase, lowercase, title case, sentence case, camelCase, PascalCase, snake_case, and kebab-case instantly.

How to Use the Case Converter

  1. Open the case converter.
  2. Paste or type your text into the input box.
  3. Click the case format you want: UPPERCASE, lowercase, Title Case, Sentence Case, camelCase, PascalCase, snake_case, SCREAMING_SNAKE_CASE, or kebab-case.
  4. The converted text appears instantly in the output area.
  5. Click Copy to copy the result to your clipboard.

All Case Formats Explained

FormatExampleDescriptionCommon uses
UPPERCASEHELLO WORLDAll characters capitalisedAcronyms (NASA, HTML), constants in code (MAX_SIZE), emphasis, form labels
lowercasehello worldAll characters smallURLs, email addresses, CSS class names, general data normalisation
Title CaseHello WorldFirst letter of each word capitalisedArticle headings, book titles, proper names, navigation menu items
Sentence caseHello worldOnly first letter of first word capitalisedGeneral writing, blog posts, standard sentence formatting
camelCasehelloWorldNo spaces; first word lower, subsequent words start with uppercaseJavaScript / TypeScript variables and functions, JSON keys, Java method names
PascalCaseHelloWorldNo spaces; every word starts with uppercaseJavaScript / TypeScript class names, React component names, C# types and methods
snake_casehello_worldWords separated by underscores, all lowercasePython variables and functions, database column names, file names on Linux/macOS
SCREAMING_SNAKE_CASEHELLO_WORLDWords separated by underscores, all uppercaseConstants in Python (MAX_RETRIES), environment variables (DATABASE_URL), C preprocessor macros
kebab-casehello-worldWords separated by hyphens, all lowercaseURLs and slugs (/about-us), HTML attributes (data-user-id), CSS classes, npm package names
Train-CaseHello-WorldWords separated by hyphens, each word capitalisedHTTP headers (Content-Type, X-Request-Id), some configuration formats

Naming Conventions by Programming Language

LanguageVariablesConstantsClasses / TypesFiles
JavaScript / TypeScriptcamelCaseSCREAMING_SNAKE_CASEPascalCasecamelCase or kebab-case
Pythonsnake_caseSCREAMING_SNAKE_CASEPascalCasesnake_case
JavacamelCaseSCREAMING_SNAKE_CASEPascalCasePascalCase (matches class name)
C#camelCase (private), PascalCase (public)PascalCasePascalCasePascalCase
GocamelCasecamelCase or PascalCasePascalCase (exported types)snake_case
Rustsnake_caseSCREAMING_SNAKE_CASEPascalCase (structs/enums)snake_case
CSS / HTMLkebab-case (classes, IDs)kebab-casekebab-case
Database (SQL)snake_case (columns, tables)UPPERCASE (SQL keywords)snake_case

Why Naming Conventions Matter

Naming conventions are not arbitrary style preferences — they serve practical purposes in software development:

Title Case Rules

Title case is more complex than simply capitalising every word. Different style guides have different rules:

The case converter uses simple title case (capitalise every word) — appropriate for most practical uses like headings, navigation labels, and article titles where strict editorial style is not required.

Case Conversion in Data Processing

Case conversion is a common data cleaning step when working with data from different sources:

Sentence Case vs. Title Case

This is one of the most common formatting decisions in content and UI work:

Modern SaaS products (Notion, Linear, Figma) have largely moved to sentence case for UI text — it is considered more readable at scale. News sites and media publications still use title case for article headlines. Consistency within a context matters more than which style you choose.

camelCase in JavaScript: Why It Became Standard

JavaScript's built-in APIs use camelCase throughout (getElementById, addEventListener, innerHTML). When the language's standard library sets a convention, the ecosystem follows. Early influential libraries (jQuery) reinforced camelCase. JSON (JavaScript Object Notation) conventionally uses camelCase keys to match JavaScript variable naming, making JSON response parsing seamless without key transformation. The result is a deeply entrenched convention that has spread to adjacent ecosystems (Node.js, TypeScript, React).

Python's equivalent is snake_case — the standard library uses it throughout, PEP 8 formalised it, and tools like Black auto-enforce it. The convention is so consistent in Python that violating it in a Python codebase stands out immediately.

Common Questions

Does camelCase or PascalCase affect performance?

No. Naming convention has zero effect on runtime performance — it is purely a human readability concern. Compilers and interpreters treat identifiers as opaque strings regardless of their casing. The choice of case style affects code maintainability and convention compliance, not execution speed.

What is the difference between camelCase and dromedaryCase?

They are the same thing — camelCase is sometimes called dromedaryCase (after the one-humped dromedary camel) to distinguish it from PascalCase (sometimes called UpperCamelCase or BumpyCase). Both refer to the same convention: no spaces, each subsequent word starts with a capital letter. In common usage, "camelCase" almost always means lower camelCase (first word lowercase), with PascalCase used explicitly when the first word should also be capitalised.

How do I convert a long block of code to snake_case?

Paste the entire code block into the case converter and select snake_case — it processes multi-word inputs and handles spaces as word boundaries. For a full codebase rename (e.g., migrating Python variable names), IDE refactoring tools (VS Code, PyCharm) with find-and-replace using regex are more precise — they can rename all references to a variable simultaneously. The converter is best for text blocks, headings, spreadsheet data, and variable name brainstorming.

Convert Text Case Now

Paste any text to convert between UPPERCASE, lowercase, Title Case, camelCase, snake_case, PascalCase, and kebab-case instantly.

Open Case Converter