Local StudioDEVELOPER TOOLS Whitespace Cleaner
100% Offline Download Tool Tools Catalog

Whitespace Cleaner

Trim line ends, choose which other whitespace to change, and review the affected lines.

Open a Text File

UTF-8 text up to 512 KiB.

What the default cleans

Trims spaces and tabs at the end of lines that contain text. It preserves indentation, interior spacing, whitespace-only lines, nonbreaking spaces, the BOM and existing line endings.

Paste text or open a file. Typing and editing in the field uses LF line endings.

Cleanup Options

How the options work together

Blank-line handling runs first. Text on kept lines is trimmed, interior runs collapse to one space, and remaining tabs are replaced with the selected number of spaces. Line-ending normalization changes only existing endings.

By default a blank line is empty or contains only spaces and tabs. Include Unicode spaces extends trimming, collapse and the blank-line test to characters such as nonbreaking spaces. It does not change Unicode text on its own.

Instructions

  1. Paste text, choose a UTF-8 file, or open the sample.
  2. Review the default line-end trim and select any extra cleanup rules.
  3. Select Clean Text, review the affected lines, then copy or download the result.

UTF-8 text up to 512 KiB with selectable trimming, space collapse, blank lines, tabs and line endings. Output up to 4 MiB.

Security Check

Whitespace Cleaner

Clean whitespace in local text and save a separate result.

  • Open or Paste TextWork with UTF-8 source and mixed line endings.
  • Choose Cleanup RulesReview source-line counts and before-and-after snippets.
  • Save Cleaned TextCopy or download the full UTF-8 result.

Local Security Check

Checking This Tool

Checking the launch, browser policy, and resources.

    These checks cover this tool page. Website links open only when selected.

    File Access

    The browser reads the selected UTF-8 file or pasted text and writes a separate cleaned text file on your device.