Remove extra spaces and empty lines

    Clean double spaces, tabs and empty lines from text.

    Your text stays on this device

    About the Remove Extra Spaces tool

    This tool removes extra spaces from text copied from PDFs, emails and websites: it turns double spaces and tabs into one space, trims spaces at line ends and deletes empty lines, all switched on by default. Tick "Join everything into one paragraph" to remove the line breaks a PDF puts in the middle of sentences. A note shows how many characters were saved. Use it before pasting copied text into a form, a resume or a Word file.

    At a glance

    Cleans
    Double spaces and tabs, spaces at line ends, empty lines
    Option
    Join all lines into one paragraph
    Output
    Copy, or download result.txt; characters saved are shown
    Price
    Free, no sign-up
    Works in
    Your browser, on phone or computer. Works offline after the first visit.
    Privacy
    What you type never leaves your device.

    How to clean up text

    1. Paste your text.
    2. Pick what to clean: extra spaces, line ends, empty lines, or join into one paragraph.
    3. Copy the clean text.

    Private

    Your text stays in your browser and is never sent to a server.

    Instant

    Results update as you type, with nothing to install.

    Free

    No sign-up, no limits and no ads inside your writing space.

    Remove Extra Spaces: frequently asked questions

    How do I fix text copied from a PDF?

    Turn on "Join everything into one paragraph" to remove the line breaks the PDF added in the middle of sentences.

    Does it remove the spaces between words?

    No. A run of spaces or tabs becomes a single space, so words stay apart: "Hello there, friend" becomes "Hello there, friend", which saves 5 characters.

    Are letters or punctuation changed?

    No. Only spaces, tabs and line breaks change; letters, numbers and punctuation stay exactly as you pasted them, in any language.

    Is my text sent anywhere?

    No. Everything runs in your browser and your text never leaves your device. Nothing is stored on any server.