CorexoTools

Text Formatter

Quickly transform text case and spacing.

Characters: 0 | Words: 0

What is a Text Formatter?

A text formatter is a tool that transforms the capitalisation and whitespace of a piece of text without changing any of its words. You paste in any string — a product name, a paragraph, a list of items, a database field value — and choose a transformation. The result appears instantly in the output area, ready to copy. No typing, no find-and-replace, no scripting required.

This formatter supports four transformations: UPPERCASE, lowercase, Title Case, and Trim Spaces. It also counts the characters and words in the output, so you can check length constraints at the same time — useful when the formatted text will go into a field with a character limit.

How to Format Text

  1. Paste or type your text into the input area at the top.
  2. Click one of the four buttons — UPPERCASE, lowercase, Title Case, or Trim Spaces — to apply the transformation.
  3. The formatted result appears in the output area below the buttons.
  4. Check the character and word count shown beneath the output to verify length requirements.
  5. Select the output text and copy it, or use your browser's copy shortcut.
  6. Click Clear to reset both areas and start fresh.

What Each Transformation Does

UPPERCASEconverts every letter to its capital form using JavaScript's built-in String.prototype.toUpperCase(). This respects Unicode — accented characters such as é become É, and locale-specific rules (e.g., the Turkish dotted-I) are handled by the browser's locale engine. Use UPPERCASE for headings that must appear in all caps, for constant identifiers in code, or to match a legacy database field that stores values in uppercase.

lowercase applies the inverse transformation via toLowerCase(). Common uses include normalising email addresses before a database lookup, converting user-typed search queries to match a lowercase index, or preparing text for slug generation.

Title Case capitalises the first letter of every word and lowercases the rest. This uses a word-boundary regex that treats any sequence of non-whitespace characters as a word, so hyphenated terms and words with apostrophes are handled correctly. Title Case is the standard for headings, book titles, product names, and article titles in English-language style guides.

Trim Spaces collapses every run of whitespace — spaces, tabs, and non-breaking spaces — into a single regular space, and removes leading and trailing whitespace from the whole text. This is the right fix for text copied from PDFs, web pages, or spreadsheets where invisible extra spaces cause mismatches in string comparisons.

Practical Use Cases

Content editing: A spreadsheet exported from a CRM contains product names with inconsistent capitalisation. Paste each name, apply Title Case, and copy the clean result back.

Code and data: Environment variable names should be SCREAMING_SNAKE_CASE. Type the name in mixed case, apply UPPERCASE, and then add underscores manually.

Email and web copy: A blog post headline arrived in ALL CAPS from the client. Apply Title Case to fix it in one click.

Database cleanup: User-submitted text often contains double spaces or tabs. Trim Spaces normalises the whitespace before the value is inserted into a database or sent via an API.

Frequently Asked Questions

Does Title Case follow a specific style guide?

The implementation capitalises the first letter of every word without exceptions. Major style guides (AP, Chicago, APA) have specific rules about small words like “a”, “the”, and “of” — those rules are not applied here. If you need strict style-guide compliance, check the output manually for prepositions, articles, and conjunctions.

Is there a character limit?

There is no enforced limit. The transformation is performed in memory in your browser, so the practical limit is your device's available RAM. Text up to hundreds of thousands of characters processes instantly on any modern device.

Does the tool handle languages other than English?

UPPERCASE and lowercase use the browser's Unicode-aware toUpperCase() and toLowerCase() methods, which handle most Latin-script languages correctly. Title Case is based on a simple word-boundary split and may not follow the capitalisation conventions of non-English languages.

Does the input area save my text?

No. All processing happens locally in your browser. Nothing is sent to any server. When you close the tab, the text is gone. For sensitive content such as confidential documents or personal data, this tool is safe to use.