By Docify

Convert Text to UPPERCASE in the Browser

• 5 min read

A space-padded hello world becomes HELLO WORLD because toUpperCase keeps leading and trailing spaces. The same padded input in snake_case is _hello_world_. The same padded input in kebab-case is -hello-world-. A tab or LF between hello and world stays a tab or LF on UPPERCASE. Cards update as you type. Docify's case converter maps one input to eight live previews. UPPERCASE and lowercase call toUpperCase and toLowerCase. Sentence case capitalizes after start or .?! only — a bare LF stays lowercase. Title Case uses \b\w. snake, kebab, camel, and Pascal split on whitespace only. Case mapping does not call String.prototype.normalize. Compose e + U+0301 to é (U+00E9) on /unicode-normalize/. Copy writes one card to the clipboard. Nothing is uploaded.

There is no Convert button and no file picker. Type or paste in the input; the eight cards update in the browser. Copy is disabled until the box has text. The steps below match the live tool, not Word, Docs, or Excel.

How to get an uppercase string

Step 1: Paste the text

Open the case converter and type or paste into Input. Clear empties the box. Nothing is sent to a server.

hello world

Step 2: Read the UPPERCASE card

That card runs input.toUpperCase(). JavaScript's default Unicode case mapping applies. Spaces stay spaces. The lowercase card is the inverse: toLowerCase().

Step 3: Copy that card

Copy writes the card's string to the clipboard. There is no download. Cards update as you type. For hello world:

HELLO WORLD

A space-padded hello world becomes HELLO WORLD because toUpperCase keeps leading and trailing spaces. The same padded input in snake_case is _hello_world_. The same padded input in kebab-case is -hello-world-. A padded camelCase output is HelloWorld because leading whitespace is dropped before the first-character index check.

space-padded hello world → HELLO WORLD (spaces stay)
leading-only space → HELLO WORLD
trailing-only space → HELLO WORLD
hello plus tab or LF plus world → HELLO plus tab or LF plus WORLD

The other six cards

CardWhat it runs
Sentence casetoLowerCase, then uppercase after start or . ? ! plus optional whitespace — a bare LF does not start a sentence (hello\nworld → Hello\nworld)
Title CasetoLowerCase, then uppercase each \b\w character — not Chicago/AP title case
snake_casetoLowerCase, then replace one or more whitespace characters with _ — a space-padded hello world becomes _hello_world_
kebab-caseSame as snake_case, but the replacement is - — the same padded input is -hello-world-
camelCaseDrop whitespace; keep the first character lowercase only when that match produces at index 0
PascalCaseSame whitespace drop; later word-start characters are uppercased

None of the identifier forms split existing camelCase, hyphens, or underscores. See how snake_case actually splits.

toUpperCase is not NFC

e + U+0301 → é (U+00E9) on /unicode-normalize/

UPPERCASE calls String.prototype.toUpperCase and never calls String.prototype.normalize. That is not the encoded text in/unicode-normalize/. The sample there fills é (e + U+0301); NFC normalization produces é (U+00E9) as normalized.txt. Those two strings look the same when rendered. UPPERCASE output of NFC é is É (U+00C9). UPPERCASE output of NFD é is E + U+0301. Title Case uses \b\w without the Unicode flag, so NFC é is not a \w match and stays é, while NFD é becomes E + U+0301. There is no pre-filled demo on /case-converter/. The NFC vs NFD vs NFKC guide is /blog/nfc-vs-nfd-vs-nfkc/.

é → É · e + U+0301 → E + U+0301 · output is /unicode-normalize/

What this page does not do

Word, Docs, or Excel

Shift+F3 in Word, Docs capitalization menus, and Excel =UPPER() are other products. This page does not cycle three cases or expose spreadsheet functions.

Style-guide Title Case

The Title Case card does not leave “a”, “the”, or “of” lowercase. It capitalizes every \b\w match. That is why don't becomes Don'T.

Convert case in the browser

Paste text and the eight cards update in the browser: UPPERCASE and lowercase via toUpperCase / toLowerCase, plus Title Case, Sentence case, snake_case, kebab-case, camelCase, and PascalCase. Nothing is uploaded.

Use Case Converter →

FAQ

How do I convert text to uppercase?
Paste your text in the input box. The tool instantly shows the UPPERCASE version using JavaScript's toUpperCase() method.
Does this tool upload my text?
No. All conversion runs in your browser. Your text is never sent to a server.
What about accented characters?
Unicode letters are handled correctly. É, Ñ, Ü and other accented characters convert to their uppercase equivalents.
Can I convert to lowercase too?
Yes, use the Case Converter tool which offers lowercase, Title Case, Sentence case, snake_case, and more.
Is there a character limit?
No practical limit for typical text. The conversion happens in your browser, so very large texts may be slow.
Does uppercase work for all languages?
It works for languages with uppercase/lowercase distinctions. Some scripts (Chinese, Japanese, Arabic) do not have case.

Related