Text

Case to TitleCase

Free and instant online tool to convert normal text, strings, or variables into TitleCase.

Input Text
title-case Result
100% Secure
Fast Conversion
High Accuracy

Free Online TitleCase Converter

Our string formatting tool instantly transforms your normal text, sentences, or code variables into TitleCase. Simply paste your content, and the tool will automatically handle spaces and capitalization.

How to convert

1. Paste Case text

Paste or type your Case content into the input area.

2. Conversion Process

Our tool automatically converts your text to TitleCase format with the best possible settings.

3. Copy TitleCase

The conversion is complete. You can now copy the result directly to your clipboard.

Frequently Asked Questions

Conversion Specs

InputCase
OutputTitleCase
SafetyHTTPS / Auto-delete
Price
Free

Using code

titleCase

Converts the input string to title case by first lowercasing the entire string, then capitalizing the first letter of each word. Word boundaries are determined by the `\b` regex anchor, so hyphenated words and other non-alphabetic separators only trigger capitalization at the start of each word boundary segment.

Parameters

NameTypeDescription
textstringThe input string.

Returns

stringThe title cased string.
npm i @razomy/string-case
import {titleCase} from '@razomy/string-case';

titleCase('foo bar');
// => Foo Bar

titleCase('HELLO WORLD');
// => Hello World

titleCase('one-two');
// => One-two