Remove Extra Spaces & Line Breaks
Clean text copied from PDFs: extra spaces, broken lines, tabs.
Runs in your browserFree, no sign-upOpens .txt, .md
Loading tool…
How to use it
- Paste the messy text.
- Choose how to handle line breaks and spaces.
- Copy the clean text.
About this tool
Text copied from PDFs and old documents often has lines broken mid-sentence, double spaces and invisible characters. This joins broken lines while keeping paragraphs, collapses spaces, trims lines and can straighten curly quotes.
Your input is processed on your device. Nothing is sent to a server or stored.
Questions
What are odd spaces?
Non-breaking and zero-width spaces that look normal but break search, sorting and code.
Text
All textMore tools like this
TextWord & Character CounterCount words, characters, sentences and reading time.Opens filesOpen →TextCase ConvertercamelCase, snake_case, kebab-case, Title Case and more.Opens filesOpen →TextDiff CheckerCompare two texts or files and highlight the changes.Opens filesOpen →TextRegex TesterTest JavaScript regular expressions with live highlighting.Opens filesOpen →TextSort & Dedupe LinesSort, remove duplicates, trim, reverse and shuffle lines.Opens filesOpen →TextURL Slug GeneratorTurn titles into clean, SEO-friendly URL slugs.Opens filesOpen →TextHTML to Markdown ConverterConvert HTML into clean Markdown.Opens filesOpen →TextMarkdown to HTML ConverterConvert Markdown into HTML you can paste anywhere.Opens filesOpen →