A tiny tool that fixes messy copied text so you don’t have to.

Most of us copy things from the internet all day. Articles, notes, code, links, research, chats, random screenshots turned into text. It should be simple, but it never is. You paste something into your document and suddenly there are emojis you didn’t want, smart quotes that break code, tracking junk sitting inside your URLs, weird spacing everywhere, and bullets that refuse to line up.
Smart Clipboard solves that problem in one go. It’s a small client side utility that cleans your text the moment it is pasted. No dependencies. No build tools. Just drop it into your project and it works.
Smart Clipboard is made for writers, developers, students and anyone who wants clean text without slowing down. You paste. It cleans. You move on.
The tool handles all the annoying things that show up when copying from the web:
Removes tracking junk from URLs like utm tags, fbclid and similar clutter
Converts HTML into clean Markdown
Normalizes bullets so they behave like a proper list
Replaces smart quotes with straight quotes
Strips emojis from the text
Cleans extra spaces and odd formatting
Runs fully in the browser with no external setup
It’s the kind of small utility that quietly makes your workflow feel smoother. After using it for a while you stop noticing it, because you stop noticing any mess.
Using it inside your project takes one line.
import SmartClipboard from "./smart-clipboard.js";
const result = SmartClipboard.process("Paste your text here");
console.log(result.cleaned);
If you want to copy cleaned text back into the clipboard, you can do that too.
await SmartClipboard.copy("text to copy");
Everything runs locally in the browser. Nothing leaves the page.
You can test the tool in your browser and see what it does in real time.
Paste anything and watch the output clean itself instantly.
👉 Live demo: https://codesandbox.io/p/sandbox/4pztv3
This project is intentionally simple and transparent. The gist includes:
Smart-Clipboard
Title and metadata
README.md
Full documentation
smart-clipboard.js
The main module that powers everything
TESTS.md
Official test sheet that helps you verify each feature
LICENSE
MIT license
Everything is open, readable and easy to use in any project.
Full gist link:
https://gist.github.com/byrishi/c53c3fcbd6f2e071d01ec6fba372a7b0
I copy a lot of text. Notes. Research. Headlines. Code. Ideas from the web. Every time I pasted anything I had to clean it by hand. Remove tracking tags. Replace fancy quotes. Fix spacing. Remove odd bullets. This tiny tool grew out of that daily pain.
Nothing fancy. Just something that should exist, so I made it.
If clean text makes your workflow easier, this tool will feel natural from the first use.
0
8
0