Processed in your browser

Switching language reloads this page. Copy or save any inputs and results first.

08 / TEXT

Text comparison

Review text changes and list additions or removals in one place.

Preview as you type

Standard comparison includes line order, whitespace, duplicates, and trailing newlines. Choose List comparison to check only added and removed items.

24 charsUTF-8 · Up to 50,000 characters
18 charsUTF-8 · Up to 50,000 characters
Inputs and results are processed only in this browser and are not saved.
How to use, examples and questions

Compare two texts line by line. List comparison lets you review and copy only added or removed filenames, IDs and other items without reorganizing lists in another tool.

Text comparison — how to use

  1. Paste the original text on the left under “Before” and the updated text on the right under “After”.
  2. Choose text comparison for prose or code, and list comparison for one-item-per-line lists. List comparison ignores order, duplicates and empty lines; trimming is optional.
  3. Review additions and removals, then “Copy diff”. Original inputs remain unchanged. Switch to text comparison to inspect changes in order or duplicate counts.

Input and output examples

Compare changes in configuration values

Before
const version = 1;
After
const version = 2;
Output
- const version = 1;
+ const version = 2;

Frequently asked questions

What does list comparison ignore?

It ignores line order, duplicate counts and empty lines, treating each line as one item and checking only additions or removals. Trimming is optional. Letter case, leading zeros and large integers remain distinct strings. CSV quotes and multiline items are not parsed.

Does text comparison include whitespace and trailing line breaks?

Yes. Text comparison distinguishes whitespace, line order, duplicates and trailing line breaks. Original inputs remain when switching back from list comparison.

Can I see which characters changed within a line?

Comparison works line by line. Changed lines are marked, but individual changed characters within them are not highlighted. Limit: 50,000 characters per input.

Specifications and limits

Text comparison distinguishes whitespace, line breaks and letter case, including trailing line breaks. List comparison treats each line as an item and checks additions or removals, ignoring order and duplicate counts. Trimming is optional. IDs and large integers stay as strings. CSV quoting and multiline items are not parsed.

Analytics and privacy

Conversion inputs and results are processed in your browser. Image URL and OGP loads connect directly to your chosen destination only when you select the corresponding button. Image, video, Markdown, HTML, CSV and TSV files are not uploaded to our servers. Self-signed certificates and signatures are generated locally; private keys are never sent to our servers or analytics. Markdown external images and HTML scripts are not loaded. The API client sends the URL, headers, body and selected files directly to the endpoint only when you select Send or its shortcut. Speed tests exchange generated test data with Cloudflare when you start a measurement. These destinations receive your IP address. We do not proxy these connections or send inputs or measurement results to analytics. Conversions are not saved automatically. Unsaved API inputs, responses, history and environments stay only in this page. Only API requests explicitly selected with Save in this browser are stored. Auth fields, secret variables, known auth headers and files are excluded; review URLs, bodies and custom headers for other secrets first. Collection exports include URLs and bodies, so review them before sharing.

When analytics is enabled, we use Google Analytics 4 to measure pages, tool names and use counts, actions such as copying or saving an image, speed test starts, completion, cancellation and errors, product link clicks, and monitoring guide and service clicks using fixed IDs. Google uses cookies and collects device and browser information. Google signals for advertising and ad personalization are disabled.

Disabling analytics stores only that preference in this browser. Analytics settings never contain your inputs.Google's privacy policy

Analytics is currently unavailable on this site.