Case Converter: UPPERCASE, lowercase, Title Case, snake_case

Convert text case online: UPPERCASE, lowercase, Title Case, Sentence case, snake_case, kebab-case, camelCase, PascalCase. Free browser tool, nothing uploaded.

Docify's case converter transforms text between eight formats: UPPERCASE and lowercase using toUpperCase()/toLowerCase(); Title Case (capitalize every word); Sentence case (capitalize after . ! ?); snake_case and kebab-case (replace spaces with _ or -); camelCase and PascalCase (remove spaces and capitalize). All eight conversions update live as you type. Nothing is uploaded.

Input
UPPERCASE
Result will appear here...
lowercase
Result will appear here...
Sentence case
Result will appear here...
Title Case
Result will appear here...
snake_case
Result will appear here...
kebab-case
Result will appear here...
camelCase
Result will appear here...
PascalCase
Result will appear here...

How to convert text case

  1. Paste or type your text in the Input box.
  2. View all eight conversions below—they update live as you type.
  3. Click Copy on the format you need.

How it works

  1. UPPERCASE / lowercase: Uses JavaScript's built-in toUpperCase() and toLowerCase() methods (Unicode Default Case Conversion, not toLocaleUpperCase).
  2. Title Case: Capitalizes the first letter of every word using the \b\w pattern. Apostrophes create word boundaries, so "don't" becomes "Don'T".
  3. Sentence case: Capitalizes the first letter after sentence-ending punctuation (. ! ?). Colons and commas do not start new sentences.
  4. snake_case / kebab-case: Lowercases the text and replaces whitespace with underscores or hyphens. Does not split existing camelCase words.
  5. camelCase / PascalCase: Removes whitespace and capitalizes word boundaries. camelCase keeps the first letter lowercase; PascalCase capitalizes it.

Case conversion in Python and Node

The snippets below call the same Unicode default upper and lower mappings this page uses via toUpperCase() and toLowerCase(). They do not normalize first, do not apply a Turkish locale, and are not Title Case, Sentence case, snake_case, kebab-case, camelCase, or PascalCase. For the browser walkthrough, see Convert Text to UPPERCASE in the Browser.

Node.js with String.prototype.toUpperCase

Node uses the same ECMA-262 methods as this page. toLocaleUpperCase('tr') maps i to dotted İ; this page does not. Title Case here is \b\w after lowercase — NFC éclair stays éClair because é is not \w:

const upper = 'hello world'.toUpperCase();
// "HELLO WORLD"

const lower = 'Hello World'.toLowerCase();
// "hello world"

'ß'.toUpperCase();
// "SS"

'i'.toUpperCase();
// "I"

Python with str.upper

CPython str.upper and str.lower match this page on the strings below. str.casefold maps ß to ss; this page and Node toLowerCase() leave ß. str.title() writes Éclair, not this page's éClair. str.capitalize() uppercases only the first character — not Sentence case:

upper = 'hello world'.upper()
# 'HELLO WORLD'

lower = 'Hello World'.lower()
# 'hello world'

'ß'.upper()
# 'SS'

'ß'.casefold()
# 'ss'

snake_case, kebab-case, camelCase, and PascalCase are not stdlib methods — this page lowercases and replaces whitespace (or strips it) in the browser. Python 'Hello World'.lower().replace(' ', '_') writes hello_world for a single space, same as this page, but will not collapse tabs or repeated spaces. NFC é and NFD e + U+0301 stay different strings. Normalize first on the Unicode normalizer. Whitespace-only snake_case notes are in the snake_case converter guide.

Case conversion in the shell

POSIX tr translates bytes (or locale characters) one-to-one. tr '[:lower:]' '[:upper:]' is the case-conversion pair POSIX names in tr(1) — it uses the current LC_CTYPE toupper / tolower map. This page uses ECMA-262 toUpperCase() / toLowerCase() in the browser. GNU coreutils tr documents full support only for safe single-byte locales; in UTF-8 it treats each byte separately, so é (U+00E9) and ß stay those characters. This page maps é to É and ß to SS — tr cannot expand one character to two. Title Case, Sentence case, snake_case, kebab-case, camelCase, and PascalCase are not tr. echo hello world appends a newline, so use printf to compare with this page's box.

GNU tr (Linux)

GNU tr 9.x in a UTF-8 locale still maps ASCII a-z / A-Z for the lower/upper pair. The C locale is the portable safe single-byte locale the GNU manual names (LC_ALL=C tr). Character classes should be quoted so the shell does not glob them:

printf 'hello world' | tr '[:lower:]' '[:upper:]'
# HELLO WORLD

printf 'Hello World' | tr '[:upper:]' '[:lower:]'
# hello world

# UTF-8 bytes are not Unicode letters here:
printf 'ß' | tr '[:lower:]' '[:upper:]'
# ß

printf 'é' | tr '[:lower:]' '[:upper:]'
# é

macOS / BSD tr

Apple's tr accepts the same POSIX [:lower:] / [:upper:] pair. Some BSD libc locales map a few multibyte case pairs that GNU tr leaves unchanged. It still cannot write SS from ß, and it is not Title Case:

printf 'hello world' | tr '[:lower:]' '[:upper:]'
# HELLO WORLD

printf 'Hello World' | tr '[:upper:]' '[:lower:]'
# hello world

tr a-z A-Z is ASCII range translation. In a non-C locale POSIX leaves that range unspecified — prefer the named classes. GNU sed s/.*/\U&/ is GNU-only (not POSIX sed). On GNU sed 4.9 it uppercased é to É and left ß — still not this page's SS. awk toupper is locale-dependent; mawk 1.3 leaves é and ß. A space-to-underscore pipe is not this page's snake_case (whitespace collapse happens first here). For Unicode default case in Node or CPython, see the section above.

FAQ

Does this tool upload my text?
No. All eight conversions run in your browser using JavaScript string methods. Nothing is sent to a server.
How does Title Case work?
Title Case lowercases the string, then uppercases the first letter after each word boundary (\b). This capitalizes every word, including articles and prepositions. Apostrophes create word boundaries, so "don't" becomes "Don'T".
How does Sentence case detect sentences?
Sentence case lowercases the string, then uppercases the first character at the start and after periods, exclamation marks, or question marks followed by whitespace. Colons and commas do not start new sentences.
Do snake_case and kebab-case split camelCase?
No. These converters only replace whitespace with underscores or hyphens. They do not split existing camelCase words. To split camelCase, first add spaces before uppercase letters.
Does case conversion normalize Unicode first?
No. Case methods use the browser's built-in toUpperCase() and toLowerCase() without Unicode normalization. NFC é and NFD e+combining-accent are converted separately and produce different results.

Related