Case Converter
Switch between UPPERCASE, lowercase, Title Case and more in one click.
What is Case Converter
A case converter changes the capitalization of English letters according to a chosen rule. It is commonly used for constants, headings and clean-up work.
🔒 Everything runs in your browser. Nothing is uploaded.
What this tool actually does with your file
- Where it runs
- In your browser, on this page
- Upload
- None — the file never leaves your device
- Offline
- Works with the network disconnected
Five case styles, and one that is locale-dependent
Upper, lower, Capitalized (first letter only), Title Case (every word) and Sentence case. Upper and lower follow Unicode's simple case mapping, which is not a one-to-one relation: the German ß uppercases to SS, the Turkish dotted and dotless i behave differently under a Turkish locale, and the Greek final sigma changes shape at the end of a word.
JavaScript's toUpperCase applies the default Unicode mapping rather than a locale-specific one. For Turkish content, that means i becomes I instead of İ, which is visibly wrong to a Turkish reader. There is no locale switch here, and it is worth knowing before running a bulk conversion over names.
Title Case has no single correct rule
Every style guide disagrees about small words. Chicago lowercases articles, conjunctions and short prepositions unless they are first or last; AP capitalises prepositions of four letters or more; the APA rules differ again. This tool applies the simple rule — capitalise every word — which is what most code-adjacent uses want and what a book title should not use unedited.
Acronyms are the second casualty: "NASA and the FBI" becomes "Nasa And The Fbi" under a naive title case. If the text contains proper nouns or initialisms, either protect them or accept hand-editing afterwards.
The invisible characters
Case conversion does not touch whitespace, so a string that came from a PDF or a web page may carry non-breaking spaces, zero-width spaces or a BOM that survives every pass. Two strings can then look identical and compare unequal, which is the usual reason a case-insensitive match fails.
If the result is destined for a comparison or a key, normalise Unicode first (NFC), then trim, then convert case. Doing it in the other order leaves the invisible characters in place and the mismatch unexplained.
How to use it
- 1.Enter your text
- 2.Pick a conversion rule
- 3.Copy the result
How Case Converter works under the hood
Text tools look trivial until encoding enters the picture. The bytes are unambiguous; the characters they represent are a guess unless the encoding is declared.
- 1
Read bytes, not characters
The file is read as an ArrayBuffer so the original bytes are preserved, including a byte-order mark if present.
- 2
Decode with a declared or detected encoding
TextDecoder converts bytes to text. UTF-8 is validated; a BOM is used when present; legacy encodings must be chosen explicitly because guessing between GBK and Shift_JIS is unreliable.
- 3
Transform as a pure function
Escaping, quoting, case changes and line-ending normalisation are applied to the decoded string, so the same input always gives the same output.
- 4
Encode and download
The result is encoded back to UTF-8 (or the format's own escaping rules) and returned as a Blob.
Processing pipeline
Why a file looks like mojibake
Mojibake is the same bytes decoded with the wrong table: Shift_JIS read as UTF-8, or GBK read as Latin-1. Nothing is corrupted in the file itself. If the output is garbled, the fix is to re-run with the correct source encoding, not to edit the text by hand — editing bakes the wrong characters in permanently.
CSV quoting is not optional
A CSV field containing a comma, a quote or a newline must be wrapped in double quotes, and inner quotes doubled. Tools that skip this produce files that look fine until someone imports them and the columns shift. This converter applies RFC 4180 quoting on output.
Where text tools stop
There is no reliable way to detect an unknown legacy encoding from content alone, and no way to recover bytes that were already lost. Mixed encodings inside one file cannot be fixed automatically. Very large inputs are capped because regular expressions and repeated string concatenation can take quadratic time.
Verify it yourself
Text is transformed in memory. Nothing is sent while it runs.
- 1.Open DevTools on this page and switch to the Network tab
- 2.Keep the filter on Fetch/XHR and run the tool
- 3.Confirm no request carries your file — you should see only page assets and fonts
Frequently asked questions
Does it affect non-English text?
No. Scripts without letter case, such as Japanese, are left untouched.
Is the original text changed?
No. The result is shown separately; your input stays as it is.
What this kind of conversion cannot keep
Text tools never leave the page: the string you paste is transformed in memory and written back to the result box. There is no request, no log and no retention, which also means there is no way to recover a value you closed the tab on.
More in Text
On this page
- What is Case Converter
- What this tool actually does with your file
- How it actually behaves
- How to use it
- How it works inside
- Frequently asked questions
Excel formula reference
29 functions with syntax, arguments and a table you can retype.
Browse the list →