Whitespace Cleaner
Normalize spaces and blank lines without changing words.
Read the guideRun the tool
The calculation runs in your browser. This tool does not send your input to JVR Software.
More information
Back to the toolWhat it is and when to use it
Whitespace Cleaner tidies copied prose and simple text where excessive spaces or blank padding make it harder to reuse. It is helpful with words pasted from email, PDFs, form fields or notes, where the visual layout often introduces spacing that should be reviewed.
How it works
The browser applies text substitutions and trimming. Spaces, tabs and newlines have distinct meanings, so the shape of the text can change even when all letters stay the same. The tool’s result is a cleaned plain-text version of the sample.
How to use it
- Keep a copy of any text whose indentation or line breaks are deliberate.
- Run the cleaner and compare the words, punctuation and line breaks against the original.
- Use the cleaned result in the destination and restore meaningful breaks if the text came from a visually wrapped source.
Worked example
A copied phrase such as Stock available can become Stock available. If a pasted address has spacing used to align columns, collapsing the spacing will alter that alignment. Compare a short representative excerpt before cleaning a long document.
Reading the result
Look at the beginning and end, and at any places where the copy has blank lines. A non-breaking space and a regular space may look the same on screen. Visually identical outcomes can still differ if they contain different Unicode whitespace.
Common mistakes and limits
Avoid automatic cleanup on Python, YAML, Makefiles, poems and other formats where whitespace has meaning. The tool cannot distinguish deliberate formatting from a copy artefact. Use an editor or a format-aware operation for structured files.
