Text Case Converter
Convert your text between all common cases instantly.
Sentence case
Hello world example
Title Case
Hello World Example
lower case
hello world example
UPPER CASE
HELLO WORLD EXAMPLE
camelCase
helloWorldExample
PascalCase
HelloWorldExample
snake_case
hello_world_example
kebab-case
hello-world-example
CONSTANT_CASE
HELLO_WORLD_EXAMPLE
aLtErNaTiNg
HeLlO WoRlD ExAmPlE
Text Case Reference
Sentence case
Hello world example
Title Case
Hello World Example
lower case
hello world example
UPPER CASE
HELLO WORLD EXAMPLE
camelCase
helloWorldExample
PascalCase
HelloWorldExample
snake_case
hello_world_example
kebab-case
hello-world-example
CONSTANT_CASE
HELLO_WORLD_EXAMPLE
aLtErNaTiNg
HeLlO wOrLd
How to change text case
Type or paste your text into the box above. Every format is shown at once: sentence case, Title Case, lower, UPPER, camelCase, PascalCase, snake_case, kebab-case, CONSTANT_CASE and alternating. Click Copy next to the one you need. The input can be ordinary prose or an existing identifier in any of these styles.
Writing styles
Sentence case
Only the first letter of each sentence is capitalised. It's the most readable choice for UI text, buttons and most headings, and many style guides (including Google's and Microsoft's for product UI) now prefer it to Title Case. One caution: the converter can't know which words are proper nouns, so "paris" and "javascript" stay lowercase. Fix those by hand.
Title Case
Capitalises the main words and leaves short function words in lowercase: "The Lord of the Rings". Common in English-language book titles, newspaper headlines and US-style article titles.
UPPER CASE
Good for short labels and acronyms, bad for anything longer than a few words: all-caps text is slower to read and comes across as shouting.
Programming styles
| Style | Example | Typical use |
|---|---|---|
| camelCase | orderTotal | Variables and functions in JavaScript, Java, Swift, Kotlin |
| PascalCase | OrderTotal | Classes and types almost everywhere; React components; C# methods |
| snake_case | order_total | Python, Ruby and Rust variables; SQL column names |
| kebab-case | order-total | URLs, CSS classes, file names, CLI flags |
| CONSTANT_CASE | ORDER_TOTAL | Constants and environment variables |
The converter is handy when data crosses a boundary between conventions, such as turning JSON keys from an API (created_at) into JavaScript properties (createdAt), or naming an environment variable after a config field.Our guide camelCase, snake_case, kebab-case: who uses what explains where each convention comes from and how to handle the awkward cases.
What about aLtErNaTiNg case?
It has no practical use. It's the internet's way of quoting something sarcastically, popularised by the "mocking SpongeBob" meme. It's here because people kept looking for it.
Frequently asked questions
Can I convert camelCase to snake_case?+
Yes. The converter detects word boundaries in existing identifiers, including capital letters inside camelCase and PascalCase, underscores, hyphens and spaces. So userId becomes user_id, and XMLHttpRequest becomes xml_http_request.
How are acronyms handled?+
A run of capitals is treated as one word, ending where a new capitalised word begins: getHTTPResponse splits into get, HTTP, Response. In camelCase and PascalCase output the acronym is then written as a normal word (getHttpResponse), which is what most style guides recommend.
Which words stay lowercase in Title Case?+
Short articles, conjunctions and prepositions (a, an, the, and, but, or, for, nor, on, at, to, by, in, of, up) stay lowercase unless they're the first word. Style guides such as AP and Chicago differ on a few words, so check longer headlines against your house style.
Does it work with accented letters?+
Yes. Letters like é, ü and ñ are kept and change case correctly. For code identifiers, remember that many programming languages and URLs prefer plain ASCII, so you may want to remove accents yourself.
Is my text sent anywhere?+
No. All conversions happen in your browser as you type.
Further reading
Last updated October 16, 2026