Case Converter: The Ultimate Naming Convention Guide (2026)

Udit Sharma Jan 2, 2026 11 Min Read
Table of Contents

There are only two hard things in Computer Science: cache invalidation and naming things. And part of naming things is deciding HOW to write them. Should it be userId, user_id, or UserID?

These "casing conventions" aren't just about aesthetics; they are strict standards enforced by programming languages and communities. Mixing them up (e.g., using snake_case in Java) is a surefire way to look like a novice. This guide covers every major standard you need to know.

camelCase

Format: First letter lowercase, first letter of subsequent words uppercase. No spaces or separators.

Example (JavaScript)
const userProfileImage = "url";
function calculateTotalScore() { ... }

Where to use it:

snake_case

Format: All lowercase, words separated by underscores (_).

Example (Python)
user_profile_image = "url"
def calculate_total_score():
    return 100

Where to use it:

kebab-case

Format: All lowercase, words separated by hyphens (-). Also called "spinal-case" or "lisp-case".

Example (CSS & URLs)
.user-profile-card {
    background-color: #fff;
}
// https://example.com/blog/naming-conventions-guide

Where to use it:

PascalCase

Format: First letter uppercase, first letter of subsequent words uppercase. Like camelCase, but capitalized start.

Example (React/C#)
class UserProfile { ... }

// React Components MUST be PascalCase
const SubmitButton = () => <button>Go</button>;

Where to use it:

Convert Case Instantly

Paste a list of variables or a paragraph. Convert between camel, snake, pascal, kebab, and title case with one click.

Open Converter

SCREAMING_SNAKE_CASE

Format: All uppercase, words separated by underscores.

Example (Global Constants)
const MAX_RETRY_ATTEMPTS = 5;
const API_BASE_URL = "https://api.example.com";

Where to use it:

Frequently Asked Questions

How can I quickly switch case in VS Code? +
Highlight the text and use the "Transform to..." command in the Command Palette (Ctrl+Shift+P). Or better yet, install an extension like "change-case" to bind shortcuts like Alt+Shift+U for UPPER or Alt+Shift+C for camelCase.
Why does SQL use snake_case? +
Historical reasons. Older databases were case-insensitive (treating UserTable and usertable as the same). Underscores provided a reliable way to separate words without relying on capitalization.
What is Hungarian Notation? +
An old convention (mostly dead now) where you prefix the variable name with its type. Example: strName (String Name) or iCount (Integer Count). Modern IDEs show types on hover, making this redundant and cluttering.
Can I start a variable with a number? +
No. In almost all programming languages, variable names cannot start with a digit (e.g., 2user is invalid). They must start with a letter, underscore, or dollar sign (JS).
What about spaces in filenames? +
Avoid them like the plague. Spaces cause nightmares in command-line tools (requiring escaping like file\ name.txt) and URLs (becoming file%20name.txt). Always use kebab-case (web) or snake_case (data/scripts) for files.
Is Title Case used in coding? +
Rarely in code logic, but often in UI strings or comments. Title Case (Capitalizing Every Major Word) is standard for headlines, buttons ("Sign Up Now"), and menu items.
Format Text Free Tool
Open Converter