Switch text between ten case styles — the ones writers need and the ones programmers need — in one click.
How to use this tool
- Paste your text.
- Click a case style.
- Copy the result.
The styles
For writing
- lowercase / UPPERCASE — the obvious two
- Sentence case — capitalises the first letter of each sentence
- Title Case — capitalises each significant word, leaving short joining words like "of", "the", and "and" lowercase unless they start or end the title
For code
- camelCase — JavaScript variables and functions
- PascalCase — class and component names
- snake_case — Python and Ruby variables, SQL columns
- CONSTANT_CASE — environment variables and constants
- kebab-case — CSS classes, URLs, filenames
For fun
- aLtErNaTiNg — the sarcasm case
Tips
- The code styles understand existing camelCase, so
getUserNamecorrectly becomesget_user_namerather than one long word. - Title Case here follows the common style-guide convention of lowercasing minor words. Some house styles capitalise everything — check before publishing.
- Sentence case is the safest default for headings on the web; it reads faster than Title Case and is what most modern style guides now prefer.
Related tools
- Slug generator — kebab-case plus URL cleanup
- Word counter — check length after reformatting
- Line sorter & deduplicator — tidy lists
- Text diff checker — confirm only case changed
FAQ
Is my text uploaded?
No. All conversion happens in your browser.
Why did my acronym get mangled?
Converting NASA to camelCase legitimately produces nasa, because case conversion cannot know which runs of capitals are acronyms. Fix those by hand afterwards.
What is the difference between camelCase and PascalCase?
Only the first letter. userName is camelCase; UserName is PascalCase. Most languages use camelCase for variables and PascalCase for types and classes.
Does Title Case handle hyphenated words?
It capitalises the first part. Style guides disagree on whether the second part should be capitalised, so review hyphenated terms manually.
Can I convert a whole file?
Paste its contents in. Very large documents may feel sluggish since conversion runs on every keystroke — work in sections if so.
More text tools
- Line Sorter & Duplicate RemoverSort lines alphabetically or by length, remove duplicates, trim spaces and drop blank lines. Perfect for keyword lists, emails and CSV columns.
- Lorem Ipsum GeneratorGenerate placeholder text by paragraph, sentence or word count for mockups and layout tests. Copy in one click.
- Text Diff CheckerCompare two blocks of text and see exactly which lines were added or removed. Ignore case or whitespace, and hide unchanged lines.
- URL Slug GeneratorTurn titles into clean, SEO-friendly URL slugs. Handles accents, punctuation, stop words and length limits, and converts a whole list at once.