Text case converter

Paste anything — an identifier, a heading, a whole list — and get all eleven case formats back at once. Each line is converted separately, so a pasted list stays a list. Nothing you paste is sent anywhere; conversion runs in your browser only.

Text to convert nothing entered yet

Each line is split into words first — see How it works for where the boundaries fall.

Programmer cases
FormatResult 
Prose cases
FormatResult 

About this tool

Two different jobs share one page here, because they share one hard part. Renaming userProfileImageURL to user_profile_image_url and capitalising the world according to garp correctly both start by working out where one word ends and the next begins. Once the text is split into words, every programmer case is a trivial rejoin — and title case is anything but.

The programmer cases are unambiguous — there is only one correct camelCase. Title case is not: several style guides give different answers to the same title. This page follows Chicago 18th, which is the one most general writing and publishing works to, and says so rather than leaving you to guess. If you are writing to APA, MLA or a newsroom stylebook, check the differences below before using the result.

How it works

Every line is handled on its own, so a pasted list of twenty identifiers comes back as twenty converted identifiers rather than one run-on string. Blank lines are preserved.

Splitting a line into words is the part that actually matters. Separator characters — spaces, underscores, hyphens, full stops, forward and back slashes — are treated as word boundaries. Then two more boundaries are inserted: between a lower-case letter or digit and a following capital (so userName becomes user Name), and between a run of capitals and a capital that starts a lower-case word (so XMLHttpRequest becomes XML Http Request, not X M L Http Request). That second rule is what keeps acronyms intact; without it, every initialism in your codebase would be shredded one letter at a time.

Title case then works on those words, against embedded lists of articles, coordinating conjunctions and prepositions. It lowercases articles, the coordinating conjunctions, and prepositions of four letters or fewer; everything else is capitalised, including prepositions of five letters or more. The first and last words are always capitalised, as is the first word after a colon, em dash or end punctuation. Both halves of a hyphenated word are capitalised.

Which title case this uses, and where others differ

This page follows Chicago 18th. Lowercase articles, the coordinating conjunctions, and prepositions of four letters or fewer; capitalise everything else, including prepositions of five letters or more; always capitalise the first and last word. The September 2024 edition changed this — every earlier edition lowercased all prepositions regardless of length, which is why The World according to Garp is the textbook example of old Chicago and The World According to Garp is the current one.

Other guides differ, and if you are writing to one of them the result here will need adjusting:

If you need one of those exactly, the difference is nearly always a preposition, and it is usually one word. Read the result before you use it rather than assuming any tool has your house style.

Common questions

Why Chicago and not one of the others?

Because it is the one most general writing works to, and because for a page whose main job is converting identifiers, a style-guide picker was more machinery than the job needed. If you are writing to APA, MLA or a newsroom stylebook, the section above lists exactly where they diverge — it is almost always a single preposition.

Should "according" be capitalised?

Under Chicago 18th, yes — it is nine letters, and the 2024 edition capitalises prepositions of five or more. Under MLA, no. The World according to Garp is correct MLA and looks like a typo to most people; The World According to Garp is what this page gives you.

Why is my acronym coming out as Xmlhttprequest?

Because prose cases lower-case everything they are not capitalising, and the tool has no way to know XML is an initialism rather than a word. The programmer cases keep the split correct — XMLHttpRequest becomes xml_http_request and back to XMLHttpRequest as PascalCase — but sentence case and title case will flatten it. Fix acronyms by hand afterwards; a fixed list of known initialisms would be wrong for whatever yours happens to be.

Does it handle non-English text?

Partly. Case conversion uses the browser's own Unicode-aware toUpperCase and toLowerCase, so accented characters convert correctly. But the word-splitting rules and every title-case word list are English, and both APA and MLA capitalise titles in other languages sentence-style rather than title-style anyway. Treat title case here as English-only.

Is anything I paste stored or sent?

No. There is no network request on this page after it loads, and nothing is written to storage except your light/dark theme preference. Reload and the text is gone.

Known limitations

The same job at the command line

More tools

See the whole toolbox — thirty-seven free tools planned, all running in your browser.