Skip to main content

Case Converter

AI

Convert text between UPPER, lower, Title, camelCase, snake_case, and more.

How it works

  1. 1

    Paste your text

    Paste or type the text you want to transform, analyze, or generate.

  2. 2

    Apply the tool action

    Run the selected conversion, generation, or formatting option.

  3. 3

    Copy the output

    Copy the processed text and use it in your document, app, or workflow.

Common use cases

  • To camelCase

    hello world example

  • To snake_case

    Hello World Example

About This Tool

Instantly convert text between multiple case formats: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, and CONSTANT_CASE. Paste any text and click the format you need — the conversion is instant and you can copy the result with one click.

**Supported case formats**

UPPERCASE converts every character to its capital form — useful for headings, warnings, and acronyms. lowercase does the opposite, converting everything to small letters — ideal for normalizing pasted text. Title Case capitalizes the first letter of every word, following standard title capitalization rules (articles, conjunctions, and short prepositions remain lowercase unless they are the first or last word). Sentence case capitalizes only the first letter of each sentence — the standard format for body text.

camelCase joins words with the first word lowercase and subsequent words capitalized (myVariableName). PascalCase capitalizes every word including the first (MyClassName). snake_case joins words with underscores and everything lowercase (my_variable_name). kebab-case uses hyphens instead of underscores (my-variable-name). CONSTANT_CASE is like snake_case but all uppercase (MAX_RETRY_COUNT).

**When to use each format**

Developers use camelCase for JavaScript and TypeScript variables, PascalCase for React component names and C# classes, snake_case for Python variables and Ruby methods, kebab-case for CSS class names and URL slugs, and CONSTANT_CASE for environment variables and configuration constants. Content writers use Title Case for blog post headings and book titles, and Sentence case for body text. Marketers use UPPERCASE sparingly for emphasis in ad copy and social media posts.

**How word splitting works**

The converter intelligently splits your input text into words before rejoining them in the target format. It recognizes spaces, underscores, hyphens, and camelCase boundaries (transitions from lowercase to uppercase) as word separators. This means you can paste "myVariableName" and convert it directly to snake_case ("my_variable_name") or kebab-case ("my-variable-name") without manually separating the words first.

**Privacy**

All conversion runs in your browser using standard JavaScript string methods. No text is sent to any server or stored anywhere.

More examples

Examples

To camelCase

Input

hello world example

Output

helloWorldExample

To snake_case

Input

Hello World Example

Output

hello_world_example
Frequently Asked Questions
What case formats are supported?
UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case, kebab-case, and CONSTANT_CASE.
What is camelCase vs PascalCase?
camelCase starts with a lowercase letter (myVariable). PascalCase starts with an uppercase letter (MyVariable). Both capitalize subsequent words.
Can I use this for filenames and labels?
Yes. It is useful for formatting filenames, section titles, labels, and any text that needs consistent casing. kebab-case is commonly used for URL slugs and CSS class names.
How does the converter split words from camelCase?
The converter detects transitions from lowercase to uppercase letters as word boundaries. For example, "myVariableName" is split into "my", "Variable", "Name" and then rejoined in your chosen format.
Does Title Case follow standard capitalization rules?
Yes. Title Case keeps short articles (a, an, the), conjunctions (and, but, or), and short prepositions (in, on, at, to) lowercase unless they appear as the first or last word of the text.
Is my text sent to a server?
No. All case conversion runs entirely in your browser using standard JavaScript string methods. Your text is never uploaded, logged, or stored.
What is CONSTANT_CASE used for?
CONSTANT_CASE (all uppercase with underscores) is the standard naming convention for environment variables, configuration constants, and enum values in most programming languages. Examples: MAX_RETRIES, API_BASE_URL, DEFAULT_PAGE_SIZE.

Learn More

Related Guides

Discover More Tools

View all Text & Data Tools →