{ }JSON Compare

Mobile · iPhone and Android

Compare JSON on Your Phone

iPhone and Android, in the browser you already have — with the one thing most guides skip: on a phone you paste, because phones do not drop files into a text box.

The short answer

Yes, on both iPhone and Android, in the browser you already have. No app, no account, no install. The honest limitation is the input method: the two boxes accept pasted text and dropped .json files, and phones do not drop files into a text box, so on mobile the flow is copy, paste, compare rather than pick a file.

That is a smaller problem than it sounds. Most JSON you want to compare on a phone arrives as text anyway — a Slack message, a GitHub notification, an API response in a support ticket.

iPhone: Safari

  1. Open this page in Safari. There is nothing to install.
  2. Open the JSON you want to compare in the app that has it — Files, Mail, a note, a chat — tap once inside the document, then Select All and Copy.
  3. Back in Safari, tap the left box (Original (A)) and choose Paste. The line count in the box header confirms it landed.
  4. Do the same for the second document in the right box (Changed (B)).
  5. Lock the keyboard with Done and tap Compare JSON. The result appears under the boxes.
  6. Tap Copy as Markdown to put a path-by-path table on the clipboard, or Download .md to save the file to Files → Downloads.

If a document is too large to copy comfortably, the practical desktop-to-phone path is different: do the comparison on the computer and send yourself a settings link, which reproduces the same switches on the phone. That link never contains your JSON — only the switch states and the match field.

Android: Chrome

  1. Open this page in Chrome.
  2. Open the .json file in Files (or Drive), select the text and copy it.
  3. Tap into the left box and long-press to Paste, then repeat in the right box.
  4. Tap Done on the keyboard so it stops covering the result area, and tap Compare JSON.
  5. Read the result below; long paths wrap inside each row rather than forcing the page to scroll sideways.
  6. Use Copy as Markdown for the clipboard, or Download .md to put the file in the phone's Download folder.

The comparison also runs without a network connection once the page has loaded, which is a useful way to check on Android and iOS alike: load the page, enable airplane mode, then paste and compare. If it works, the diff really is local.

What a two-pane tool looks like on a small screen

Two boxes side by side need width, and a phone has roughly 390 CSS pixels of it. What changes:

  • The panes stack. Left box on top, right box below. You no longer see both documents at once, so compare them in the result area instead of by eye.
  • Line counts still matter. The 0 lines counter in each box header is the quickest way to confirm a paste landed and was not truncated by a clipboard limit.
  • Long values wrap. A single 600-character JWT still makes a row tall, which is one more reason to shorten the values before comparing — see what to redact before pasting.
  • The keyboard eats half the screen. Dismiss it before you read the result, otherwise you are scrolling a 250-pixel window.
  • No drag and drop. iOS Safari has no drop target for files in a textarea, and Android drag is unreliable at best. Paste is the only path.
  • Autocorrect is a real risk if you type JSON instead of pasting it. iOS likes to turn straight quotes into curly ones and -- into a dash; a curly quote is not valid JSON and the diff will complain about a parse error that has nothing to do with your data. Paste, or turn off Smart Punctuation.

Where a phone runs out of room

A browser tab on a phone has far less memory to spend than a laptop. Up to a few megabytes the comparison is instant on a current phone; somewhere in the tens of megabytes it either slows to a crawl or the browser drops the tab. Two things help:

  • Trim before comparing. Use Ignore paths for $.updatedAt, $.requestId and similar noise instead of comparing the whole payload and scrolling.
  • Move the big ones to a desktop, or to the command line. A 20 MB file belongs in jq or a small Python script, not in a mobile tab. The command-line recipes are one line each.

On a tablet

An iPad in landscape treats this like a laptop: both boxes side by side, result underneath. In portrait it stacks the same way a phone does. The same paste-based flow applies, and a hardware keyboard makes the Ctrl / Cmd + Enter shortcut usable.

The phone checklist

  • Browser, not an app — nothing to install on either platform.
  • Paste rather than choose a file; there is no upload box on mobile.
  • Dismiss the keyboard before reading the result.
  • Redact secrets before pasting, even on a phone.
  • Keep the comparison under a few megabytes, or switch to the jq recipes.
  • Moving a comparison between desktop and phone: use Copy settings link for the switches, not the documents.

Frequently asked questions

Can I compare JSON files on my phone?

Yes. Open jsoncompare.co in Safari or Chrome. Nothing is installed and no account is needed, because the comparison runs in the page. The one difference from a desktop is input: phones do not drop files into a text box, so you copy the JSON and paste it into each pane instead.

Does it work on iPhone and Android?

Both, in the browser. It runs on iPhone and iPad Safari and on Android Chrome or Firefox. The two-pane layout stacks into one column on a narrow screen, so the result appears below the boxes rather than beside them, and you scroll rather than glance between two columns.

Can I upload a .json file from my phone?

No file picker is needed and none is shown; the panes accept pasted text and dropped .json files, and dropping files is a desktop gesture. On a phone the practical route is to open the file in Files or Drive, select all, copy, and paste into each pane. The line counter in each pane header confirms the paste landed whole.

Is there a file size limit on mobile?

Up to a few megabytes compares instantly on a current phone. Beyond that the limiting factor is the tab's memory rather than the tool: a browser may slow down, or discard a background tab, somewhere in the tens of megabytes. For files that size, compare on a desktop or with a command-line one-liner.

Does it work offline on a phone?

Load the page first, then switch on airplane mode and paste two documents. If the comparison still runs, the work is happening inside the tab and your JSON is not being sent anywhere. This is the same check as watching the browser's network panel on a desktop.

Does the mobile version behave differently to the desktop one?

Loading, copying and pasting only. The comparison logic is ordinary JavaScript with no mobile-specific code path, so results match a desktop with the same switches. What differs is ergonomics: stacked panes, a smaller result area, and clipboard rather than file input.