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.
Related tools
All tools- Word & character countCharacters, words, lines and reading time, counted as you type.
- Full-width / half-width converterConvert Japanese text between full-width and half-width, one character class at a time.
- Line toolsRemove duplicate and blank lines, sort, trim and number a list — in one pass.
- JSON formatter & validatorPretty-print, minify, sort keys — and point at the exact line that broke.
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
Paste your text
Paste the text into the box above. The line-ending style is shown right below it.
Choose what to clean up
Pick a case option, whitespace handling, and a line-ending style. The result updates as you go.
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