Convert text case
Turn text into uppercase, lowercase, title case, snake_case or camelCase.
Calculator inputs
Results
Enter your values and press “Calculate” to see the result.
In short
- What it calculates
- Turn text into uppercase, lowercase, title case, snake_case or camelCase.
- Formula used
Sentence case: capital after a full stop- Example
- “annual sales report” converted to:
Text case converter
Rescuing a message typed entirely in capitals, tidying up titles or turning a name into snake_case are repetitive chores solved here in one click.
Eight formats are available, including the three commonly used in programming.
How it works
Each mode applies a different transformation while respecting the accents and special characters of Spanish, Portuguese and French.
Formula
Sentence case: capital after a full stop
Title Case: capital on every word
snake_case, kebab-case and camelCase: no accents or spaces
Worked example
“annual sales report” converted to:
UPPERCASE: ANNUAL SALES REPORT
Title Case: Annual Sales Report
camelCase: annualSalesReport
Explanation
Every language has its convention
In JavaScript, variables use camelCase and classes PascalCase. Python and Ruby use snake_case for variables and functions. CSS and web addresses favour kebab-case. For constants, almost everyone agrees on uppercase with underscores. These are not whims: following the language convention makes code readable for whoever comes next.
Case conversion is not symmetric
Converting to uppercase and back to lowercase does not always return the original text. The German ß becomes SS and never comes back. In Turkish, dotless and dotted i are distinct letters, which breaks conversions performed without regard to language.
Accents and transliteration
For a filename or web address it pays to strip accents and special characters. But transliteration is not always trivial: ñ can become n or ny depending on the convention, and in German ü is traditionally transcribed as ue.
Filenames
Beyond case, avoid spaces, accents and punctuation. A lowercase name with hyphens survives any operating system, server and command line tool without needing quotes.
Frequently asked questions
Are accents preserved?
Yes in uppercase, lowercase, sentence case and title case. The programming formats strip them, since they only allow ASCII characters.
Is it good for file names?
Yes. kebab-case and snake_case produce names that are valid and safe for files, URLs and variables.
Why does converting to uppercase and back not restore the original?
Because some conversions are not reversible. The German ß becomes SS and does not return, and Turkish has its own rules for the letter i.
Which case should I use for filenames?
Lowercase with hyphens. Avoid spaces, accents and punctuation, and it works on any system without needing quotes.
Need to calculate something else?
These tools are often used alongside this calculator.
Word count
Words, characters, sentences and paragraphs in any text.
Slug generator
Turn a title into a clean URL with no accents or odd characters.
Character count
Characters with and without spaces, lines and bytes in a text.
Reading time
How long a text takes to read, silently or aloud.