Paste your text
A sentence, a title, a list of names or a whole paragraph.
Paste your text and pick a format. Ten conversions cover everyday writing and the naming styles used in programming, and accented letters are handled correctly.
100% private — your text is processed in your browser and never sent to any server.
Keep going with your result in another tool. Nothing is uploaded.
A sentence, a title, a list of names or a whole paragraph.
UPPERCASE, lowercase, Title Case, Sentence case or a programming style.
The conversion is instant and updates as you type.
Text that arrives in the wrong case is common: a heading typed with caps lock on, a list of names all in lowercase, a spreadsheet column in capitals or a title that should follow headline style. Retyping it is slow, and the word processor's case command is limited and hidden in a menu. Choose a format here and the whole text is converted at once.
The last five formats are naming conventions used in code, file names and URLs: camelCase, PascalCase, snake_case, kebab-case and CONSTANT_CASE. Each line of your text is converted separately, and words are detected at spaces, punctuation and at the boundaries of an existing camelCase, so userFirstName becomes user_first_name in snake case.
The tool does not know which words are proper names or acronyms. Sentence case and Title Case lowercase everything first, so names such as London or acronyms such as NASA are also affected and may need a manual touch-up afterwards. The list of small words is a simple one and does not cover every style guide. In programming styles, punctuation and accents are treated as separators, and accented letters are kept, so use remove accents first if you need plain ASCII identifiers.
With the text in A2 (here hello wORLD, it's o'neil
):
| To get | Formula | Result |
|---|---|---|
| All capitals | =UPPER(A2) | HELLO WORLD, IT'S O'NEIL |
| All lower case | =LOWER(A2) | hello world, it's o'neil |
| Each Word Capitalized | =PROPER(A2) | Hello World, It'S O'Neil |
| Only the first letter in capitals | =UPPER(LEFT(A2, | Hello world, it's o'neil |
The formulas use English function names and commas. If your Excel or Google Sheets is set to another language, the function names change, and in many countries the separator between arguments is a semicolon.
PROPER capitalizes every letter that follows a character that is not a letter, so it turns it'sinto
It'S. It also lowercases the rest of each word, so acronyms such as
USAbecome
Usa.
ofand
andin lower case; the fourth formula covers the first, and the tool covers both.
Each snippet below was run and the comments show the real output.
import re
import string
def snake_case(s):
s = re.sub(r"(?<=[a-z0-9])(?=[A-Z])", "_", s) # helloWorld -> hello_World
return re.sub(r"[\s\-]+", "_", s).lower()
print(snake_case("helloWorld example-text")) # hello_world_example_text
print("it's a dog's life".title()) # It'S A Dog'S Life
print(string.capwords("it's a dog's life")) # It's A Dog's Life
const camelCase = s => s.toLowerCase().replace(/[-_\s]+(.)?/g, (_, c) => (c ? c.toUpperCase() : ""));
console.log(camelCase("hello_world example-text")); // helloWorldExampleText
console.log("it's a dog's life".replace(/\b\w/g, c => c.toUpperCase())); // It'S A Dog'S Life
str.title() and the JavaScript \b\w trick both treat the apostrophe as a word break, so it'sbecomes
It'S.
string.capwords() splits on spaces only and avoids it.ofor
andin lower case. The tool does, and also converts between snake_case, camelCase, kebab-case and PascalCase.
=UPPER(A2) for capitals, =LOWER(A2) for lower case and =PROPER(A2) to capitalize each word. They work the same in Google Sheets.re.sub(r"(?<=[a-z0-9])(?=[A-Z])", "_", s).lower(). helloWorld becomes hello_world.More utilities that also run without leaving your browser.