spyc.ai

Free tool

Case Converter

Convert text to upper, lower, title or sentence case, or to camelCase, PascalCase, snake_case and kebab-case.

How it works

What is the Case Converter?

The Case Converter is a free tool that rewrites text in eight letter cases at once. Type or paste text and it shows UPPERCASE, lowercase, Title Case, Sentence case, camelCase, PascalCase, snake_case and kebab-case side by side, each with its own copy button. Results update as you type.

How to use the Case Converter

  1. Type or paste your text, or press Load sample.
  2. Find the case you need in the grid of eight results.
  3. Press Copy under that result.
  4. For identifiers, put one name per line to convert a whole list at once.

What is a case converter?

A case converter changes the capitalization of text without retyping it. That covers writing cases, such as fixing a headline typed in all caps, and code cases, such as turning a column label into a variable name.

This one does not make you pick first. It shows all eight conversions of the same input together, so you copy the one you want.

What is the difference between title case and sentence case?

Title case capitalizes the main words: The Lord of the Rings. Sentence case capitalizes only the first word of each sentence, as in ordinary prose: The lord of the rings.

The Title Case here capitalizes every word except a short list of articles, conjunctions and prepositions such as a, the, and, of, to and in, which stay lowercase unless they start a line. Style guides such as AP and Chicago differ on the details, for example on longer prepositions, so check a published headline against your own guide.

What are camelCase, PascalCase, snake_case and kebab-case?

They are ways of writing a multi-word name with no spaces. camelCase joins the words and capitalizes each one after the first: userFirstName. PascalCase capitalizes the first as well: UserFirstName. snake_case uses lowercase with underscores: user_first_name. kebab-case uses lowercase with hyphens: user-first-name.

Which one to use is a convention of the language or framework. JavaScript variables are usually camelCase, classes and React components PascalCase, Python variables and many database columns snake_case, and CSS classes and URL paths kebab-case.

How does the tool split words for the code cases?

It breaks the text at spaces, punctuation, hyphens and underscores, and also where a lowercase letter or digit is followed by a capital. So userFirstName, user_first_name and User first-name all produce the same words, and XMLHttpRequest splits into XML, Http and Request.

Apostrophes are dropped, so don't stays one word. Each line is converted on its own, which lets you paste a list of labels and get a list of identifiers back.

What can a case converter get wrong?

Anything that needs knowledge of meaning. Sentence case and Title Case lowercase the text first, so names, brands and acronyms such as iPhone, NASA or Paris lose their capitals and need fixing by hand. The tool capitalizes the pronoun I and the first letter after a full stop, question mark or exclamation mark, and that is all it knows.

For URL paths, the URL Slug Generator does more than kebab-case: it strips accents and stop words. To check length after converting a headline, use the Word Counter.

Questions

How do I change all caps to normal text?
Paste the text and copy the Sentence case result. Then re-capitalize names and acronyms, which the tool cannot recognize.
Does it work with accented letters?
Yes. Letters such as é, ü and ñ are upper and lowercased by the browser's own Unicode rules and are kept in the code cases.
Which case should I use for URLs?
Lowercase words joined by hyphens, which is kebab-case. Google's URL guidelines recommend hyphens over underscores to separate words.
Is title case the same in every style guide?
No. AP, Chicago, APA and MLA agree on capitalizing main words but differ on prepositions and hyphenated words. Treat the output as a first pass.
Is the Case Converter free?
Yes, with a free spyc.ai account. It runs in your browser, so nothing you type or paste is sent to a server.

Developer Tools

More in Developer Tools

JSON Formatter

Format, minify and validate JSON in your browser, with the line and column of the first syntax error.

Format JSON

JSON-LD Formatter

Pretty-print JSON-LD pasted bare or in script tags, list every @type and flag a missing @context.

Format JSON-LD

Em Dash Remover

Replace every em dash, and optionally en dashes, with a comma, hyphen or period, and count the changes.

Remove dashes

Ready when you are

Before your next buyer asks AI about you, ask AI about yourself

One check, four engines, about twenty seconds. We show you the answers before we ask for anything.