PasteDiff


Compare code and config online without uploading the text

A volunteer maintaining a community radio station’s website had two versions of a tiny config block. The old one pointed uploads at a folder named incoming. The new one, suggested in a forum post, pointed them at incoming-public and turned a debug flag on. The volunteer wanted to see exactly which lines had moved before pasting anything into the server. They did not want to drop the station’s config into a website that would store it, index it, or use it as a prompt.

That is a reasonable thing to want, and it is easy to get wrong. “Online diff” describes a lot of tools. Some send the text to a server so the server can compare it. Some compare it in the browser and also phone home with the contents. Some compare it in the browser and leave the text in the tab. PasteDiff is in the last group. The distinction is worth checking rather than assuming, including for this site.

What actually happens on this site

You paste into two boxes on the comparison page. The counting and the comparison run in JavaScript in your browser. The text is not sent to PasteDiff in order to be diffed, because there is no PasteDiff service waiting for documents. Closing the tab drops the boxes. There is no account that could have a copy attached to it. The only value the site writes on your machine is the light or dark theme, and only after you change it, in the browser’s local storage.

That is the privacy claim, and it has edges. The page is hosted by Cloudflare, which sees the request for the page itself, the way any host sees a request for a URL. The page loads fonts from Google, so a request for the typeface includes your IP address. If an ad is shown, Google’s ad code may set cookies, which the privacy policy describes. None of those requests is the contents of the config box. Do not confuse “the site has third-party requests” with “the diff is uploaded.” They are different facts. Both are true here: third parties help deliver the page and may advertise on it, and the text you paste is compared locally.

Your browser can still do something with the text on its own. The boxes allow spellcheck. A browser that uses an online spellcheck service may send words to that service if you have that feature turned on. That is the browser, not PasteDiff. If you are pasting a config, turn spellcheck off for the field or use a browser profile that does not use online spelling. The comparison does not need spelling suggestions.

A config you can stand to look at

Here is the shape of the radio station’s change, with the names reduced to what you need in order to see the edit. It is an illustration, not a file to deploy.

upload_dir = incoming debug = false keep_days = 14

upload_dir = incoming-public debug = true keep_days = 14

Word mode is enough. “incoming” and “incoming-public” differ, and “false” and “true” differ. “keep_days” stays plain. That is the review: a folder rename and a debug flag, not a mysterious rewrite. Character mode is the follow-up if a hostname or a port changed by one digit. Which mode to use applies to config as much as to prose. A flag is a word. A port is a handful of characters.

Compare the snippet, not the whole server image. The more you paste, the more you are holding in a tab that also loads fonts and ads. The comparison is local, and the habit of pasting an entire environment file is still a bad habit. Take the block that changed. Leave the secrets out of the block.

What you should not paste, even locally

A local comparison is not a vault. The text sits in the tab’s memory until you clear it or close the page. Malware on the machine, a shared screen, or a browser extension that reads page contents can still see it. Extensions are the one people forget. A coupon extension or an “AI writing” extension may be allowed to read every textarea. That is outside PasteDiff’s control. If a snippet contains a password, a private key, a token, or a customer export, do not put it in a browser window. Compare it in an editor on the machine, with the network story you already understand, or redact it first.

Redaction before a local compare is simple. Replace the secret with a fixed dummy, the same dummy on both sides if the secret did not change. Then the highlights are the settings, not the key. If the secret itself is what changed, you already know that, and you do not need a website to confirm it. Look at the two keys in a local editor and rotate the one that leaked into a forum post. The forum post was the upload. The diff will not undo it.

How to check a different website’s diff tool

Before you paste real config into any online diff, open the network panel, paste a harmless sentence, and click the button. If a request leaves the machine with your sentence in it, the comparison is not local, no matter what the homepage says. If the only requests are for the page, the script, the fonts, and ads, you are in the same situation as here: the text stayed, the chrome did not. Read that site’s policy anyway. A tool can be local today and proxy the text after an update.

For the radio station, the safe sequence was: copy the three-line block, replace nothing because those three lines were not secret, compare locally, and only then edit the server by hand. The debug flag was the entire risk. Seeing it highlighted was the point. Uploading the station’s real passwords to find that flag would have been a worse trade than missing the flag. Paste the smallest text that can answer the question, into a page that does not take a copy, and clear the boxes when you are done.