Clean up text formatting by rejoining hard-wrapped lines into paragraphs, tidying whitespace, and normalizing punctuation width without rewriting the words.
That is the common problem when text arrives from a PDF, email, chat log, or content system: the visible line breaks no longer match the sentences, blank lines multiply, indentation disappears, or punctuation comes in a mix of full-width and half-width forms. Text Formatter is built for this one-click article-typesetting job. It returns a clean, readable article while leaving the wording alone.

Identify what actually needs cleaning
Start by looking at the symptoms rather than reaching for a generic text cleaner. A formatting problem is usually one of the following:
- Hard wrapping: one sentence is split across several lines because it was copied from a narrow PDF column, email field, chat window, or content system.
- Damaged paragraph structure: paragraph breaks are difficult to distinguish, or every new paragraph begins in the same place without the intended indent.
- Whitespace buildup: trailing spaces, repeated spaces, and several blank lines interrupt the reading flow.
- Mixed punctuation widths: CJK prose contains half-width punctuation where full-width forms belong, or English text contains full-width punctuation.
- Missing CJK-Latin gaps: Chinese, Japanese, or Korean characters sit directly beside Latin words or digits.
There is an important boundary: this cleanup concerns plain-text typesetting. The tool arranges paragraphs, indentation, punctuation width, spacing, and blank lines. It is not a rich-text styling remover for fonts, colors, bold, hyperlinks, or HTML, and it does not correct grammar or rewrite sentences.
Select the preset that fits the source
The three presets make different decisions. Choose by language and by how much structure you want to preserve.
| Preset | Best for | Main changes |
|---|---|---|
| Format as article, CJK | Chinese, Japanese, or Korean prose, including adjacent Latin words and digits | Rejoins hard-wrapped lines, applies two ideographic spaces of paragraph indentation, converts eligible punctuation to full width, turns period runs into a proper ellipsis, spaces CJK and Latin, and normalizes blank lines. |
| Format as article, English | Latin-script articles and other English prose | Rejoins paragraphs with single spaces at the joins, applies no paragraph indent, converts full-width punctuation to half-width, and tidies whitespace. |
| Plain cleanup | Text that needs conservative whitespace cleanup | Trims lines, collapses spaces, and limits blank lines without changing paragraph structure. |
For a mixed Chinese-Japanese-Korean and Latin document, the CJK article preset is the relevant starting point because its punctuation conversion is context-aware and its spacing rule handles adjacent Latin words and digits. For English prose, use the English article preset. Select Plain cleanup when reflowing would destroy meaningful line breaks.
The presets are conveniences rather than a cage: every rule also appears as an individual control in the Advanced section. Start with the closest preset, then change only the rule whose result needs attention.
Clean up a paste from start to finish
- Paste the messy text. Copy it directly from the PDF, email, chat log, or content system into the formatter's input. Keep the source open so you can compare paragraph boundaries and punctuation afterward.
- Choose one preset. Use Format as article, CJK for Chinese, Japanese, or Korean prose; Format as article, English for Latin-script articles; or Plain cleanup for conservative whitespace cleanup that leaves paragraph structure alone.
- Fine-tune one rule if needed. Open the Advanced section and adjust the relevant individual control, such as reflow, indentation, punctuation conversion, CJK-Latin spacing, or blank-line handling. Recheck the output after the change.
- Copy the formatted article. Use the copy button, then paste the result into the document, email, or publishing field you intended to fill. Review it there before saving or sending.
The processing pipeline is deterministic and idempotent: applying it to already formatted text changes nothing, so repeating the process does not introduce extra drift.
Understand the reflow and punctuation safeguards
The reflow rule is the heart of the cleanup. A line that does not end with sentence-final punctuation is joined to the next line. Latin joins receive a space; no space is inserted when either side of the join is a CJK character. A blank line always remains a paragraph separator, so ordinary line wraps are not treated as paragraph breaks.
- In Latin text, a wrapped line joins the next line with a single space.
- In CJK text, the join follows the no-extra-space convention.
- A blank line is retained as a deliberate paragraph boundary.
The punctuation converter is context-aware as well. A comma following Chinese text can become a full-width comma, while the comma in 3,000 and commas in an English sentence remain exactly as typed. The CJK preset also collapses a run of three or more periods into a proper ellipsis. This distinction matters because a blanket width conversion can alter numbers and ordinary English punctuation even when the author did not intend it.
The full-width mappings are verified against the Unicode Character Database, and the CJK-Latin spacing rule follows W3C Chinese layout requirements. Unicode’s East Asian Width property provides the standards reference for character-width categories.
Keep line-oriented text conservative
Plain cleanup applies only line trimming, space collapsing, and blank-line limits. It does not rejoin lines or otherwise touch paragraph structure. That makes it the safer starting point for line-oriented material, such as logs, address blocks, poem stanzas, or command examples, when each line is meaningful.
It is still not a preservation guarantee for indentation-sensitive content. Because Plain cleanup trims lines and collapses horizontal spacing, it may not retain alignment that depends on leading or repeated spaces. Inspect the result before using it on code, ASCII tables, or other material whose spacing carries meaning. An article preset is a better fit for continuous prose, but it should be used only where reflowing lines into paragraphs is intended.
This distinction keeps the cleanup goal honest: tidy an article without rewriting it, and avoid using a paragraph-oriented formatter where each line is data.
Review the output before publishing
Formatting is easier to trust when you check a few high-risk areas against the original:
- Paragraph boundaries: Confirm that hard-wrapped sentences were joined and that intended blank-line breaks survived.
- Numbers: Check that separators in values such as 3,000 were not converted.
- Mixed-language spacing: Verify the gap between CJK characters and nearby Latin words or digits.
- Indentation: English article output has no paragraph indent, while CJK article output uses two ideographic spaces.
- Meaningful lines: Make sure lists, code, addresses, or logs were not unintentionally reflowed.
The result reports paragraph, word, and CJK character counts alongside exact line counts. These figures provide a quick structural check: a surprising change in paragraph or line count can point to a boundary that needs another look.
Because the tool arranges text rather than rewriting it, compare the final output with the source before sending it. If the source contains an error in wording, the formatter will preserve that error; correcting content is a separate editorial step.
Plan around the input and scope limits
Text Formatter accepts up to one million characters per input and processes the text in one pass, taking around a tenth of a second even at that size. The work happens entirely in your browser: the input is not uploaded, stored, or attached to an account.
Several tasks are deliberately outside its scope. It does not convert Simplified Chinese to Traditional Chinese because that requires a large character mapping that the tool does not carry. It does not add line numbers, QR codes, or signature blocks, and it does not rewrite the wording. Use it for typesetting only.
A paste above the one-million-character limit is outside the supported input range. For a document of that size, keep the original available and inspect the complete output once before copying it into its destination.
If you're weighing options, Whitespace Remover Bulk: Clean Pasted Text Safely covers this in detail.
If you're weighing options, How to Clean Messages: Delete Old Ones or Normalize Text covers this in detail.