String Case Converter

Convert text between camelCase, PascalCase, snake_case, SCREAMING_SNAKE_CASE, kebab-case, dot.case, Title Case, and more. Auto-detects your input format and shows all conversions instantly. Everything runs in your browser -- your data never leaves your device.

camelCase
PascalCase
snake_case
SCREAMING_SNAKE_CASE
kebab-case
dot.case
path/case
Header-Case
Title Case
Sentence case
UPPER CASE
lower case

How It Works

Instant Conversion

Type or paste any string and see all 12 case formats update in real time. The tool intelligently splits your input into words by detecting separators and casing boundaries, then reassembles them in every supported format.

🔎

Auto-Detect Input

The converter automatically analyzes your input to determine its current case format -- whether it is camelCase, snake_case, kebab-case, or any other supported convention. The detected format is displayed above the results.

🔢

Smart Word Splitting

Handles complex inputs with mixed separators, numbers, and acronyms. Transitions like getHTTPResponse are properly split into individual words (get, HTTP, Response) for accurate conversion.

📋

One-Click Copy

Each result has its own copy button so you can grab exactly the format you need. A toast notification confirms the copy. All processing happens locally in your browser -- nothing is sent to any server.

Understanding String Case Conventions

Naming conventions are a fundamental part of writing clean, readable code. Different programming languages, frameworks, and contexts have established conventions for how identifiers, filenames, URLs, and configuration keys should be formatted. This tool converts between all the major conventions instantly.

Common Case Formats

Why Naming Conventions Matter

Consistent naming conventions improve code readability, reduce cognitive load, and make codebases easier to search and maintain. Most linters and style guides enforce specific conventions. When working across languages or migrating code, converting between case formats is a common task -- this tool makes it instant and error-free.

Frequently Asked Questions

What is camelCase?
camelCase is a naming convention where the first word is lowercase and each subsequent word starts with an uppercase letter, with no separators between words. For example: myVariableName, getUserData, httpResponseCode. It gets its name from the "humps" created by the uppercase letters in the middle, resembling a camel's back. camelCase is the standard naming convention for variables and functions in JavaScript, Java, C#, TypeScript, Kotlin, and many other languages.
What is the difference between camelCase and PascalCase?
The only difference is the first letter: camelCase starts with a lowercase letter (myVariable), while PascalCase starts with an uppercase letter (MyVariable). PascalCase is also known as UpperCamelCase. In most languages, PascalCase is used for class names, type definitions, interfaces, enums, and React/Vue components, while camelCase is reserved for variables, function names, and method names.
When should I use snake_case vs kebab-case?
snake_case uses underscores between lowercase words (my_variable_name) and is the standard in Python, Ruby, Rust, PHP, and SQL. kebab-case uses hyphens between lowercase words (my-variable-name) and is commonly used in CSS class names, HTML data attributes, URL slugs, filenames, and CLI command flags. The choice typically depends on the language or context you are working in. Note that kebab-case cannot be used for variable names in most programming languages because the hyphen is interpreted as a minus operator.
What is SCREAMING_SNAKE_CASE used for?
SCREAMING_SNAKE_CASE (also called CONSTANT_CASE or UPPER_SNAKE_CASE) uses all uppercase letters with underscores separating words, like MAX_RETRY_COUNT, DATABASE_URL, or API_SECRET_KEY. It is the near-universal convention for constants and environment variables across most programming languages including JavaScript, Python, Java, C, C++, Go, and Rust. The all-caps style makes constants visually distinct from regular variables.
How does the auto-detect feature work?
The tool analyzes your input string by examining its structure: the types of separators used (underscores, hyphens, dots, slashes, spaces), the pattern of uppercase and lowercase letters, and transitions between letters and digits. Based on these patterns, it determines which naming convention the input follows. For example, if the input contains underscores and is all lowercase, it is identified as snake_case; if it has no separators but has internal uppercase letters starting with a lowercase letter, it is identified as camelCase.
Does this tool handle numbers and special characters?
Yes. The converter treats transitions between letters and digits as word boundaries. For example, getV2Response is split into get, V2, and Response, producing get_v2_response in snake_case. Common separators like underscores, hyphens, dots, and slashes are recognized and replaced with the appropriate separator for the target case format. All processing happens entirely in your browser -- no data is sent to any server, making it safe to use with any text.

Explore More Developer Tools

Check out our other free developer tools. Format JSON, decode JWTs, parse cron expressions, encode Base64, and more -- all from your browser with no sign-up required.

JSON Formatter →