Skip to content
JustCleanText

How it works

What happens between paste and copy

JustCleanText is a small, deterministic pipeline that runs in your browser tab. There is no model, no queue, and no network request. This page documents every step, including the parts it deliberately does not do.

No server · No storage · No third-party scripts

The pipeline

Six passes, fixed order

Order matters. Removing invisible characters before parsing prevents false negatives in the Markdown rules. Tidying whitespace last prevents the earlier passes from re-introducing gaps.

  1. Normalise line endings

    Windows, macOS, and browser clipboards disagree about carriage returns. The input is converted to a single newline convention before anything else runs.

  2. Remove invisible characters

    Zero-width spaces, joiners, BOMs, bidi controls, soft hyphens, and stray control characters are deleted. Non-breaking spaces become ordinary spaces.

  3. Drop AI chatter

    Only whole lines that are pure filler are removed, plus a trailing outro sentence inside the final paragraph. Anything carrying information stays.

  4. Parse Markdown

    The text is read as Markdown — headings, emphasis, code, quotes, lists, links, tables — and turned into an intermediate block structure rather than having characters deleted.

  5. Render both outputs

    The block structure is rendered twice: once as plain text, once as a semantic HTML fragment. Code blocks are rendered verbatim; tables stay aligned or flatten, and emoji are removed outside protected code.

  6. Tidy whitespace

    Trailing spaces are removed, runs of blank lines collapse to one, and leading and trailing newlines are trimmed.

The rules

What each toggle actually does

Six toggles, each independent. Turning one off never disables another.

Strip Markdown

## Summary → Summary

ATX headings, bold and italic markers, strikethrough, inline code, fenced code, blockquotes, horizontal rules, images, links, autolinks, and ordered and unordered list markers. Link labels are kept; hrefs are kept in rich-text output. Escaped characters are unescaped.

Remove AI chatter

“Certainly! Here is the revised version:” → removed

Whole-line matches only, limited to the first three and last three content lines. A conservative list covers bare interjections, “here is…” openers, “I hope this helps”, “let me know if…”, and “as an AI language model” disclaimers. A trailing outro sentence is also stripped.

Remove emoji

“On track ✅” → “On track”

Pictographic emoji, flags, keycaps, and skin-tone modifiers are removed. Copyright, registered, trademark and service-mark symbols are left alone, and emoji inside fenced code are preserved when code preservation is on.

Preserve tables

| Plan | Price | → aligned rows or “Plan: Starter; Price: $9”

With the toggle on, Markdown tables become aligned plain-text rows and semantic HTML tables in rich-text copy. With it off, each row is flattened into labelled value pairs for feeds and ATS parsers.

Clean invisible Unicode

“zero\u200Bwidth” → “zerowidth”

Zero-width space, non-joiner, joiner, word joiner, BOM, directional marks, legacy bidi embeddings, soft hyphen, combining grapheme joiner, and non-emoji variation selectors. Emoji presentation selectors are kept so emojis still render.

Bullets from dashes

- item → • item

Only line-leading Markdown list markers are converted, and only in plain-text output. Hyphens inside words, date ranges, and code are never touched. This is off-by-default on pages where a hyphen is likely to be intentional.

Advanced options

  • Preserve code blocks — fenced content is emitted byte for byte
  • Normalize smart quotes & dashes — typographic punctuation to keyboard punctuation
  • Normalize Unicode forms — NFKC for full-width and ligature characters
  • Convert look-alike characters — Cyrillic and Greek homoglyphs next to Latin letters

Output modes

One result, two clipboard flavours

The cleaned text is rendered once as characters and once as HTML. The rich copy writes both to the clipboard in a single ClipboardItem, so the receiving app picks the representation it understands.

Rich text keeps headings as heading elements, lists as list elements, emphasis as strong and em, and links as anchors. Plain text is the character stream with line breaks and list order preserved.

Browsers that reject text/html on the clipboard fall back to a hidden contenteditable element and the legacy copy command, which produces the same two flavours.

Privacy model

Why there is nothing to leak

  • No account required
  • No text upload
  • No text storage
  • Works after page load, even offline
  • No AI rewriting or text generation

The site is a set of static files. Cloudflare Pages serves them like any web host, but no function, worker, or API accepts your text. Fonts and scripts are self-hosted, so the page makes no third-party requests while you use it.

Read the policy

Limitations

What it does not do

Knowing the edges of a tool is how you decide whether to trust it.

No rewriting

JustCleanText removes characters and lines. It never paraphrases, translates, summarises, or generates text.

No AI detection

There is no classifier and no score. Removing formatting artefacts is not the same as changing authorship, and the site never claims otherwise.

Partial Markdown support

Tables have their own toggle: keep them aligned and semantic, or flatten rows into labelled values. Footnotes, definition lists, and reference-style links are left readable rather than converted.

Browser limits

Very large pastes depend on your device memory and re-render on each keystroke. Tens of thousands of characters are comfortable; millions are not.

Try it

See the pipeline on your own text

Cleaning options

What does each toggle do?
Strip Markdown
Removes *, #, _, backticks, link syntax, and list markers while keeping the words.
Remove AI chatter
Drops standalone openers and outros such as “Certainly! Here’s…” and “I hope this helps!”
Remove <think> reasoning blocks
Removes DeepSeek-style <think>…</think> reasoning, thinking tags, and unclosed reasoning blocks so only the answer remains.
Remove emoji
Removes pictographic emoji, flags, keycaps, and skin-tone modifiers. Copyright and trademark symbols are kept, and code blocks are protected.
Preserve tables
Keeps Markdown tables as aligned rows and real HTML tables in rich-text copy. Turn this off to flatten each row into “heading: value” text.
Clean invisible Unicode
Removes zero-width spaces, word joiners, stray control characters, and excess blank lines.
Bullets from dashes
Turns “- item” list markers into a typographic bullet (• item) in the plain-text output.
Empty

Uploads are read locally. .txt, .md, .csv, .json, .html and .xml up to 5 MB.

Copy for your app

Cleaned text appears here, live.

Cleaning report

    Paste text above to see the cleaning report.

    Download for your app

    CtrlEntercopies rich textShiftfor plain text

    100% client-side privacy:your text never touches a server. Uploaded files are read in the browser, all cleaning happens locally, and nothing is stored after you close the tab.

    • No account required
    • No text upload
    • No text storage
    • Works after page load, even offline
    • No AI rewriting or text generation
    Advanced options

    Technical FAQ

    Questions about the implementation

    Where the code runs, what the limits are, and how to verify that nothing is uploaded.

    Where does the cleaning actually happen?

    In your browser tab. The page ships a small JavaScript module with the rules; when you type or paste, that module transforms the string in memory and writes the result into the output box. No network request carries your text.

    Is there a size limit?

    There is no server limit because there is no server. Practical limits come from your device’s memory and from how much text you want to re-render on each keystroke. Tens of thousands of characters work comfortably.

    Can I use JustCleanText offline?

    Yes, once the page has loaded. Nothing in the cleaning path depends on the network, so you can go offline and keep working until you reload.

    What does JustCleanText not do?

    It does not rewrite, paraphrase, translate, summarize, or detect AI authorship. It does not fix grammar, and it does not preserve every exotic Markdown extension such as footnotes or tables — those are left readable rather than converted.

    How do I know it is not sending my text anywhere?

    Open DevTools → Network, paste text, and watch. There are no requests after page load. The site loads no analytics, no fonts from a third party, and no scripts other than its own.

    Start cleaning

    Read the code path, then use the tool.

    No accounts, no analytics on your text, and no server that could store a draft.

    100% client-side · No account · Works offline once loaded

    Clean & copy