HubTools

Text Formatter

Transform text with multiple case conversions and line operations.

What is Text Formatting?

Text formatting refers to a family of mechanical text transformations that come up constantly in coding, writing, and data work: changing case (UPPER, lower, Title, camelCase, snake_case, kebab-case), trimming and normalizing whitespace, sorting and de-duplicating lines, reversing, swapping cases, and renumbering. Each transform is one or two lines of code, but assembling them into a workflow takes a real shell session — meanwhile most of these jobs come up while you're in a browser editing a Jira ticket, Slack message, or design tool. This formatter exposes 18+ operations as click-once buttons with live preview, so you can paste text in, click your way to the format you need, and copy out. Need to swap one pattern across the text? Use the Find & Replace tool. Counting words for a draft? Try the Word Counter.
Input Text
0 characters0 words
Transformations
Case Transforms
Line Operations
Output
Text Statistics
Characters
0
Words
0
Lines
0
Sentences
0
Quick Tips
Chain Transforms
Use the "Use as Input" button to chain multiple transformations together.
Case Conversions
camelCase, PascalCase, snake_case, and kebab-case are commonly used in programming for variable and file naming.
Line Operations
Sort, deduplicate, trim, and number your lines. Great for cleaning up lists and data.
CONSTANT_CASE
Also known as SCREAMING_SNAKE_CASE, commonly used for constants and environment variables.

How to use this tool

  1. 1
    Paste your text
    Drop the text you want to transform into the input pane. There's no length cap beyond browser memory.
  2. 2
    Pick a transform
    Click any operation button — UPPER, lower, Title Case, camelCase, trim, sort, dedup, etc. The output pane shows the result instantly.
  3. 3
    Chain transforms
    Each transform takes the current output as the next input — apply trim, then sort, then dedup to clean a messy list in three clicks.
  4. 4
    Copy the result
    Hit Copy when satisfied to grab the transformed text for paste anywhere.

Frequently asked questions

What's the difference between camelCase, snake_case, and kebab-case?
Three naming conventions used in different ecosystems: camelCase (firstName) is the JavaScript and Java standard, snake_case (first_name) is the Python and Rust convention plus most SQL column names, and kebab-case (first-name) is used in HTML attributes, CSS class names, and URL slugs. The text formatter swaps between all three plus PascalCase and CONSTANT_CASE.