gekro
GitHub LinkedIn
Dev

Text Formatter & Case Converter

Convert case and run the line operations you always need - trim, dedupe, sort, number, wrap - in one pass

 

Case

Line operations (applied in this order)

As-is, no warranty. These apps are free under their listed license and run entirely in your browser. Use at your own risk — don't blame me if your PC catches fire, your dog runs away, or the math turns out wrong. Verify anything that actually matters. None of this is professional financial, medical, legal, or engineering advice.

© 2026 Rohit Burani · MIT · Built at gekro.com · View source ↗

Guide

What It Does

Two families of transformation that almost always get used together.

Case conversion - ten options covering both prose and code conventions:

lower · UPPER · Sentence case · Title Case · camelCase · PascalCase · snake_case · kebab-case · CONSTANT_CASE

The programming cases share one word-splitter that handles existing camelCase boundaries, so parseHTTPResponse and parse-http-response both convert cleanly rather than collapsing into one word.

Line operations - the ones that otherwise mean opening an editor and writing a regex:

  • Trim each line
  • Remove blank lines
  • Remove duplicate lines (keeps first occurrence)
  • Sort A→Z (locale-aware)
  • Reverse line order
  • Number lines (right-aligned to the widest index)
  • Hard-wrap at a column you choose, breaking on word boundaries

Order Is Fixed And Documented

Operations apply in the order they appear in the interface: case conversion first, then trim, remove blanks, dedupe, sort, reverse, number, and finally wrap. That is a deliberate choice - a tool where the result depends on which checkbox you clicked last is a tool that quietly corrupts data. Trimming before deduping means lines differing only in trailing whitespace collapse correctly, and numbering before wrapping keeps the numbers attached to the right lines.

Live line, word, and character counts sit under the output so you can confirm the shape of the result.

Pairs with the Punctuation Fixer for character-level cleanup and Word Counter for deeper text statistics.

Limitations

  • Title Case is mechanical - it capitalizes every word rather than applying a style guide’s rules about articles and prepositions.
  • Sentence case uses punctuation boundaries (., !, ?), so abbreviations like “e.g.” will trigger a capital after them.
  • Sorting is lexicographic, not natural - item10 sorts before item2.
  • Wrapping is a hard wrap that inserts real newlines; it does not understand markdown, code indentation, or hanging indents.

For informational purposes only. Not financial, medical, or legal advice. You are solely responsible for how you use these tools.