Skip to content

Format text

Runs in your browserNothing is uploadedThis runs entirely in your browser. Nothing is uploaded.

Normalize letter case, tidy up trailing whitespace and tabs, collapse repeated blank lines, and unify line endings. This is a different tool from "Line tools" (dedupe/sort) and "Fullwidth/halfwidth conversion" — it works on the character sequence within a line.

Input

Applies anywhere in the line, including leading indentation, which gets collapsed to a single space too. Do not use this on code.

Output

Paste some text and the result appears here.
1Paste it inUneven spacingand line breaks2Clean it upCase, whitespace,blank lines3Get the resultConsistenttextChoose LF or CRLF and the line endings are unified to that style on output.
Steps run in a fixed order (tabs → case → trailing whitespace → collapse spaces → collapse blanks → line endings), so the same settings always give the same result.
All tools

About this tool

A fixed processing order
From tab conversion to line-ending normalization, the same order always applies. Same settings, same result, every time.
Destructive options default off
"Collapse runs of spaces" also flattens leading indentation to a single space. Options like that stay off by default so results never change without you noticing.
Unifies line endings on the way out
Choose LF (Unix/Mac) or CRLF (Windows) and every line ending in the result matches, regardless of what the original file used.

How to use it

  1. Paste your text

    Paste the text into the box above. The line-ending style is shown right below it.

  2. Choose what to clean up

    Pick a case option, whitespace handling, and a line-ending style. The result updates as you go.

  3. Get the result

    Copy the result, or send it back to the input to layer on another pass.

About formatting

Can I use "collapse spaces" on code?
Don't — it flattens leading indentation to a single space, which breaks code structure. This is meant for prose, not code.
Does "Capitalize Each Word" work on Japanese?
No. It only affects alphabetic words. Japanese has no letter case, so this option has no effect on it.
Can the original line endings (like CRLF) be preserved?
No. The browser's text box converts every line ending to LF internally as soon as you paste, before this tool ever sees the text — the original style is already gone by the time it reaches here. Pick LF or CRLF when you write the result out instead.

FAQ

I want to remove duplicate lines.
Use "Line tools" instead — operations on the set of lines (dedupe, sort, fully removing blank lines) live there.
I want to convert fullwidth/halfwidth characters.
Use "Fullwidth/halfwidth conversion" — it converts by character type (letters, katakana, symbols) separately.
Is the text sent to a server?
No. Everything happens in the browser.
Sponsored links