Case converter
Convert text between UPPERCASE, lowercase, sentence case, camelCase, snake_case and the rest.
Result
Before you ship this
- Note: Paste the text to convert.
How to use it
- Paste the text. Each line is converted separately.
- Pick a style. The programmer styles remove spaces and punctuation; the prose styles keep them.
- Copy the result.
- For headline capitalisation in AP or Chicago style, use the title case converter instead.
Two families of case
The prose styles — upper, lower and sentence — change letters and leave the text as text. The programmer styles turn a phrase into a single identifier, which means spaces and punctuation have to go.
Knowing which family you are in explains every surprise: a sentence converted to camelCase comes back as one long word because that is what camelCase is.
It reads the convention it is given
The splitter recognises a camel hump, an underscore, a hyphen and ordinary spaces, so converting between any two conventions works without a round trip through plain text.
For headlines, use title case
Headline capitalisation is a style question — which small words stay lowercase, what happens to the last word — and the rules differ between AP and Chicago.
That lives in the title case converter, which implements both. This page is for the mechanical conversions.
Casing is language-dependent
Uppercasing is not a per-letter operation in every language. Turkish has a dotlessı whose uppercase is I, while i uppercases to a dotted İ. German ß expands to two characters. A naive uppercase mangles both.
That is why you should never case-fold user input to compare it — compare the stored value instead. Casing is for display.
Case converter FAQ
What is the difference between camelCase and PascalCase?
Only the first letter. camelCase starts lowercase and PascalCase starts uppercase; both join words with no separator and capitalise each subsequent word.
What happens to punctuation in snake_case?
It is dropped rather than encoded, because an identifier cannot contain it. Check the result still reads as you intended, especially where an apostrophe or a slash carried meaning.
Can it convert an existing camelCase name?
Yes. The splitter recognises a camel hump, an underscore and a hyphen as well as spaces, so any of the conventions converts to any other.
What is kebab-case used for?
Lowercase words joined by hyphens, and it is the convention for URLs, CSS class names and HTML attributes. Search engines treat a hyphen as a word separator and an underscore as a joiner, which is why a URL slug should be kebab-case and never snake_case.
What is the difference between sentence case and title case?
Sentence case capitalises the first word and nothing else; title case capitalises most words according to a style guide. Sentence case is a mechanical transformation, which is why it lives here. Title case depends on AP or Chicago rules about short words, so it has its own tool.
Will sentence case break my proper nouns?
Yes, and there is no way around it. Converting to sentence case lowercases everything and then raises the first letter, so London becomes london. Names, brands and acronyms have to be restored by hand afterwards — check the output rather than pasting it straight into a page.
What is SCREAMING_SNAKE_CASE for?
Constants, environment variables and configuration keys, across almost every language. If you are converting a list of settings names for a .env file or a CI configuration, this is the style you want.
Why does my acronym look wrong in camelCase?
Because conventions disagree. Some style guides keep acronyms uppercase and produce parseHTTPResponse; others treat them as ordinary words and produce parseHttpResponse. The second is what most modern style guides, including Google, now recommend, and it is the one that round-trips cleanly back to separate words.
Should I type headings in capitals or use CSS?
Use text-transform in CSS and keep the real capitalisation in the markup. Some screen readers read a genuinely uppercase word letter by letter, and a visitor who copies the text gets shouting. The visual effect is identical and only one version survives a redesign.
What happens to numbers and symbols?
The prose styles leave them alone. The identifier styles drop punctuation and keep digits, which can produce something a language will reject — most of them will not accept an identifier that begins with a number. Read the result before you paste it into code.