How to use it
- Paste your text into the box on the left (the top box on phones). The cleaned version appears next to it right away, and the line under the boxes shows what changed.
- Pick a Quick setup that matches your text: Clean PDF text for anything copied from a PDF or web page, Clean a list for one item per line, and Merge into one line when you need a single block with no breaks at all.
- Not quite right? Switch individual Options on and off and compare instantly. To run the result through again with different settings, press Clean the result again.
- When it looks good, press Copy. To check its length, paste it into the Korean Character Counter.
Clean your text before you machine-translate it
Google Translate, DeepL, Papago and similar tools work best on whole sentences. Text copied straight from a PDF has a line break at the end of every visual line, and translators tend to keep those breaks. A sentence split over three lines can come back as three disconnected fragments.
Cleaning first fixes the most common problems:
- Lines broken mid-sentence are rejoined, so each sentence reaches the translator in one piece.
- Blank lines between paragraphs stay, so the translation keeps your paragraph structure.
- English words split with a hyphen at the end of a line (
infor-+mation) are put back together. - Invisible characters such as zero-width spaces are removed. To software, a word with one of these inside looks like two separate pieces.
Cleaning won’t fix the translation itself, and a PDF with tables or two columns may still need some manual work (see the limits below). But it gives the translator clean sentences to start from.
When it helps
- PDFs. Papers, reports, manuals and bilingual notices break into short lines when you copy them. Paste with the default settings and only the broken lines are joined; paragraphs stay.
- Web articles and posts. Text copied from web pages often brings doubled spaces, indents, runs of blank lines and invisible special spaces. Clean it once before pasting it into your own document.
- Lists. Usernames for a giveaway, names on a sign-up sheet, items for a group order: paste one per line and press Clean a list to remove blank and duplicate lines and sort A–Z. If you copied several spreadsheet columns, they arrive separated by tabs; turn off Turn tabs into spaces to keep the columns apart.
Korean PDFs that break lines in the middle of words
Many Korean documents, especially from government offices and schools, are written in Hangul Word Processor (HWP), a word processor widely used in Korea. Its paragraph settings can wrap lines by character instead of by word, and when such a file becomes a PDF, lines can end in the middle of a word.
Joined normally, those lines get a space inside the word. Turn on Join Hangul without a space and Hangul followed by Hangul is joined directly. English words and numbers still get a space. One catch: a line that really did end at a space between two Korean words gets glued too, so skim the result.
글자 단위로 줄을 나눈 문서는 낱말 중간에서 줄이 끊어집니↵
다. 이럴 때는 한글끼리 붙여서 이어야 합니다.글자 단위로 줄을 나눈 문서는 낱말 중간에서 줄이 끊어집니 다. 이럴 때는 한글끼리 붙여서 이어야 합니다.글자 단위로 줄을 나눈 문서는 낱말 중간에서 줄이 끊어집니다. 이럴 때는 한글끼리 붙여서 이어야 합니다.“In documents that wrap lines by character, lines break in the middle of words. In that case, Hangul has to be joined without a space.”
What each option does
The “after” text in these examples is the tool’s real output. ↵ marks a line break, and red labels mark characters that are normally invisible.
Rejoin lines broken mid-sentence
For each line break, the tool checks whether a sentence might have ended there. It keeps the break only in these cases and turns every other break into a single space:
- Blank lines are paragraph breaks and stay.
- Lines ending in punctuation: if a line ends in
.?!。…or:(even with a closing quote or bracket after it), a paragraph may have ended, so the break stays. - Noticeably short lines: the tool estimates the length of a full line in your text and keeps the break after any line shorter than 60% of that. These are usually headings or the last line of a paragraph.
- Lines followed by a list item: a line starting with
-•※1.1)(1)①Ⅰ.ora)starts a new item.Korean letter markers like 가. 나. 다. only count when they appear in order starting from 가.
Survey summary↵ Most visitors borrowed picture books and cookbooks, and the↵ English-language shelf was busier than expected on weekend↵ mornings, especially between 10 and 12.↵ - Extend weekday evening hours↵ - Add a Saturday reading club
Survey summary↵ Most visitors borrowed picture books and cookbooks, and the English-language shelf was busier than expected on weekend mornings, especially between 10 and 12.↵ - Extend weekday evening hours↵ - Add a Saturday reading club
The heading stays on its own line because it’s short, and the break after “10 and 12.” stays because the line ends with a period. The - lines are list items. The flip side: a line that happens to end with a period in the middle of a paragraph also keeps its break. To join those as well, turn off Keep breaks after sentence ends and heading lines; then only blank lines and list items keep their breaks.
Hyphenated words
When an English word is split with a hyphen at the end of a line (infor- + mation), the hyphen is removed only if both sides are lowercase letters. If either side is a capital letter or a number, as in COVID- + 19, the hyphen is treated as part of the word and kept.
Please visit the infor-↵ mation desk during the COVID-↵ 19 period.
Please visit the information desk during the COVID-19 period.
Remove all line breaks
Removes every break, paragraph breaks included, and leaves one line. Useful for search boxes, single-line form fields, or pasting a passage into a translator as one block.
First line.↵ Second line.↵ ↵ A new paragraph.
First line. Second line. A new paragraph.
Spaces
Collapse multiple spaces into one shrinks runs of spaces between words to a single space. Trim spaces at line starts and ends removes indents and trailing spaces. Turn trimming off to keep indents and only tidy the spaces between words.
The meeting starts at 3 p.m.
The meeting starts at 3 p.m.
Invisible characters
Some characters show up as nothing at all, or look exactly like an ordinary space. They don’t match in search and replace, they add to character counts, and they can make a spreadsheet treat two identical names as different.
HangeulZWSPToolBOM meets at 3NBSPp.m.U+3000today
HangeulTool meets at 3 p.m. today
| Character | What happens | Where it comes from |
|---|---|---|
Zero-width space U+200B | Removed | Websites and editors that mark “you may break the line here” inside long words or URLs |
BOM U+FEFF | Removed | A marker some programs put at the very start of a UTF-8 file |
Soft hyphen U+00AD | Removed | Marks where an English word may be hyphenated. Invisible until it lands at a line end |
Zero-width joiner U+200D and similar | Removed (kept inside emoji) | Joins several pictures into one emoji. The ones inside emoji like 👨👩👧 are left alone |
Non-breaking space (NBSP) U+00A0 | Becomes a normal space | The of web pages, used to keep words on one line |
Full-width space U+3000, fixed-width spaces U+2000–U+200A | Becomes a normal space | Full-width input modes, Chinese and Japanese documents, typesetting software |
Hangul filler U+3164 | Becomes a normal space | Used on purpose to make names or messages that look blank |
Blank lines
Collapse runs into one leaves a single blank line between paragraphs and removes blank lines at the very start and end. Remove all leaves none.
First paragraph↵ ↵ ↵ ↵ Second paragraph↵ ↵
First paragraph↵ ↵ Second paragraph
Duplicate lines and sorting
Remove duplicate lines keeps only the first copy of any line that repeats. Blank lines aren’t compared. Sort puts lines in A–Z or Z–A order using English alphabetical rules: symbols and numbers first, then Latin letters, then lines starting with Hangul. With Sort numbers by value on, Item 2 comes before Item 10. This example uses the Clean a list setup.
mina_fan↵ @jin_ah↵ ↵ Item 10↵ Item 2↵ mina_fan↵ 하늘
@jin_ah↵ Item 2↵ Item 10↵ mina_fan↵ 하늘
Quotes and full-width characters
Turns curly quotes (“ ” ‘ ’) into straight ones (" ') and full-width letters, numbers and symbols (A1!) into normal ones (A1!). Turn these on before pasting into code, spreadsheet formulas or anything else that only understands straight quotes and normal-width characters. Both are off by default.
“Nice” ‘yes’ ABC123!
"Nice" 'yes' ABC123!
Why PDF text breaks into lines
A PDF is built to look the same on every device, so it stores text as characters placed at fixed spots on the page, a bit like magnetic letters stuck on a board. Where one paragraph ends and the next begins often isn’t recorded at all. When you copy, the PDF viewer copies each visible line as it is and adds a line break at the end of every one.
That’s why this tool looks at punctuation, line length and list markers. With no paragraph information in the file, it follows the same clues you’d use to spot paragraphs by eye.
Limits
- Line-break decisions are a best guess. A line that happens to end with a period mid-paragraph keeps its break, and a long last line without a period may join the next paragraph. Abbreviations with periods, like
e.g.orU.S., at the end of a line can look like a sentence end, and a line that starts with a number followed by a period, like301., can look like a list item. - Tables, columns and footnotes aren’t reordered. Text that was already scrambled when you copied it gets joined as it is. Page numbers and running headers that land between paragraphs need to be deleted by hand.
- Real hyphens at line ends can disappear. For example,
well-+knownbecomes wellknown. If your text has a lot of English, give the result a quick check. - Sorting drops blank lines, so sorting text with paragraphs removes the paragraph breaks.
- Scanned PDFs have no text to copy. A PDF made from photos of paper pages is an image, so it needs text recognition (OCR) first.
Frequently asked questions
Can I keep paragraphs and remove only the line breaks inside sentences?
Yes. That’s what the default setting, Rejoin lines broken mid-sentence, does. Blank lines are treated as paragraph breaks and kept. Breaks after lines that end in a period, question mark or exclamation point, and after noticeably short lines (usually headings or the last line of a paragraph), are kept too, as are breaks before list items such as -, 1. or ①. Every other line break becomes a single space.
Why do spaces appear in the middle of Korean words after cleaning?
The original document wrapped lines by character, so a line ended in the middle of a word. When the lines are joined, the space that normally separates lines lands inside the word. Turn on Join Hangul without a space: Hangul followed by Hangul is joined directly, while English words and numbers still get a space.
How does A–Z sorting handle numbers and Korean lines?
Sorting follows the English alphabetical rules built into your browser. In most browsers, lines that start with symbols or numbers come first, then Latin letters (upper and lower case together), and lines that start with Hangul come last. With Sort numbers by value turned on, Item 2 comes before Item 10. Blank lines are dropped when you sort.
Does it fix tables and two-column PDFs?
It cleans their line breaks and spaces, but it can’t put scrambled text back in order. Tables and two-column layouts often come out of a PDF with cells and columns mixed together, and this tool never reorders text. Copy one column or one table cell at a time, or use your PDF viewer’s area selection, then clean the result.
Is my text saved or sent anywhere?
No. All cleaning happens inside your browser. Your text isn’t sent to a server or stored anywhere, so it disappears when you refresh or close the tab. Copy the result somewhere safe when you’re done.