EditSafely

Capitalize Words in a String

Make the first letter of every word uppercase.

Runs on your device, nothing uploaded

Try:

0 chars · 0 lines

Output

Make the first letter of every word uppercase.

Type or paste above to see the result here.

Example: Capitalize a heading

What you paste never leaves this tab

Capitalize Words in a String is JavaScript that your browser has already downloaded, and it does the whole job on your own machine. On a normal site, the text you paste is sent to a server that can log it, cache it or keep it. Here it is read and transformed inside this tab and nowhere else.

  • No upload
  • No length limit
  • Works offline once loaded
  • Nothing stored or logged

How to use Capitalize Words in a String

  1. 1. Paste the text to capitalize. Enter the string you want title-cased into the input pane, whether it is a heading, a name, or a whole paragraph of lowercase text.
  2. 2. Read the capitalized result. The tool uppercases the first letter of every word and leaves the rest unchanged. Under More options, turn on Also after hyphens and apostrophes for names like Jean-Luc, or Lowercase the rest of each word to fix shouty text.
  3. 3. Copy the capitalized text. Copy the result and paste it wherever title-case text is needed, such as a page heading, product title, or form label.

When to use Capitalize Words in a String

Capitalize Words in a String uppercases the first letter of every word in a string. It is a quick fix for lowercase headings, imported names, or user-typed titles that need a more formal, presentable look.

  • Fixing an all-lowercase heading. A CMS import brought in page headings entirely in lowercase; capitalizing each word restores a normal title-case appearance before publishing the page.
  • Formatting a customer's name. A signup form stored a customer's name in lowercase because the user typed it that way; capitalizing each word before displaying it on an invoice looks more professional.
  • Cleaning up spreadsheet entries. A column of product names or city names in a spreadsheet was entered inconsistently; running each cell through this tool normalizes them to title case in one pass.
  • Preparing a book or chapter title. You typed a working title in lowercase while drafting and want it properly capitalized before adding it to a table of contents or cover page.

Examples

Capitalize a heading

Input

the quick brown fox

Output

The Quick Brown Fox

Capitalize names

Input

ada lovelace
grace hopper

Output

Ada Lovelace
Grace Hopper

Hyphenated and shouty words

Input

jean-luc o'neil hELLO

Output

Jean-Luc O'Neil Hello

About the Capitalize Words in a String tool

Capitalize Words in a String does its work locally, right in the browser. Make the first letter of every word uppercase. There is no upload step, no queue and no account, and your data never travels over the network.

It belongs to the String Tools collection on EditSafely, a set of 159 small, focused String utilities that share the same instant, private workspace.

You can shape the output with 2 settings, including Also after hyphens and apostrophes and Lowercase the rest of each word, and the result refreshes the moment you change one. 3 worked examples further down the page show exactly what the tool produces for real inputs.

Running locally also makes the tool fast and dependable: results appear as soon as your input does, there is no server outage that can take it down mid-task, and confidential data can be processed without a second thought.

Frequently asked questions

Is Capitalize Words in a String free to use?

Yes, it is completely free. All 2,943 tools on EditSafely work without an account, a subscription or usage limits.

Is it safe to paste sensitive or confidential data?

Everything happens locally. Your browser downloads the tool's code once, then does all the processing itself; nothing you enter is transmitted, stored or logged. You can even go offline after the page loads and it will still work.

How much text can I process at once?

There is no fixed limit; your device's memory is the ceiling. Up to 10 MB the result updates as you type, after a short pause that grows with the size. Above 10 MB a Run button appears so typing stays smooth, and files open up to 50 MB. A very long result shows its first 2,000 lines on screen, while Copy and Download always include all of it.

Do I need to sign up or install anything?

No. The tool works in any modern browser on desktop, tablet or phone. There is no account to create, no extension to add and no software to install.

How do I use the result?

The output panel has a one-click copy button, and you can keep refining the input while you work; the result updates in place as you type.