Whitespace and Line Break Formatter
Clean repeated blank lines, spaces and tabs using selectable rules.
Formatted text
Common values
About this tool
Clean pasted text by trimming line edges, collapsing repeated spaces and blank lines, converting tabs to spaces, and optionally adding Japanese-style paragraph indentation.
Trimming removes spaces and tabs from both ends of every line. Disable it when indentation carries meaning.
Tabs are converted before repeated spaces are collapsed. Enabling both leaves a single ordinary space.
Japanese paragraph indentation adds one ideographic space after blank lines while avoiding common list and heading markers.
FAQ
- How can repeated spaces be collapsed?
- Select the option to collapse repeated ordinary spaces to one. Ideographic spaces are different characters and are not collapsed by that setting.
- Can repeated blank lines be removed?
- Yes. Choose to remove all blank lines or keep at most one or two. Line endings are normalized to LF before processing.
- Can tabs be converted to spaces?
- Each tab can be replaced with two or four ordinary spaces. If repeated-space collapsing is also enabled, those inserted spaces are then reduced to one.
- Can Japanese paragraph indentation be added?
- Yes. One ideographic space is added at the beginning and after blank lines, except for lines starting with common list or heading markers.
Everything you enter is processed in your browser and never sent anywhere.