← All tools

Cleanup · Free · In your browser

Whitespace & Reflow Fixer

Collapse stray spaces and unwrap hard-wrapped lines from PDFs and email quotes back into clean, flowing paragraphs.

A whitespace and reflow fixer removes extra spaces and joins mid-sentence line breaks so copied text reads as proper paragraphs again.


⚙ Options

Paste your text

Paste text copied from a PDF or email - or try an example:

Runs 100% in your browser - your text never leaves this page.

0 lines · 0 words · 0 chars

- / 100

Cleanliness

Paste text to clean

What we changed
  • Paste text to clean.

🔒 Runs entirely in your browser - open DevTools → Network and you'll see zero requests. Works offline.

No upload No signup Works offline Network requests this session: 0

The short version


How to use it

  1. Paste text copied from a PDF, email, or terminal.
  2. Let the fixer collapse spaces and rejoin broken lines.
  3. Copy the reflowed paragraphs.

Private by design

There is no server and no upload. Everything runs with plain JavaScript on your device, so you can safely work with confidential or unpublished text. Open your browser's DevTools Network tab while you use it and you'll see zero requests - and it keeps working with your connection turned off.

Related reading

In the margin

Frequently asked questions

How do I fix text copied from a PDF? +

Paste it here. PDFs insert a hard line break at the end of every visual line; the fixer detects mid-sentence breaks and rejoins them into real paragraphs while preserving intentional breaks.

Will it remove double spaces? +

Yes - it collapses runs of spaces and tabs to a single space and trims trailing whitespace, without touching the words themselves.

Is my text uploaded or stored anywhere? +

No. Everything runs in your browser with plain JavaScript - your text is never uploaded, stored, or logged. Open your browser’s DevTools Network tab while you use it and you’ll see zero requests. The tool also works offline.

Related tools

Margin note

Every tool here runs 100% in your browser. Open DevTools → Network while you use one and you'll see zero requests - your text never leaves your device. Prefer the deep dives? Read the writing on Penluma.