Hongmu Notes

🔍 Table comparison

Paste the two versions of data into the left and right input boxes respectively, select the separator and matching column, and then click Compare: the newly added rows, deleted rows, and modified cells will be listed in categories, and a difference report will be given.
100% Browser local processing 0 Data upload

🔍 two pieces of data

New 0 | Delete 0 | Modify 0

💡 Instructions for use

  • The delimiters and column order on both sides must be consistent, otherwise a large number of false differences will appear, which is the most common source of problems.
  • The matching column is used to determine "which row matches which row". Columns with unique values should be selected, such as numbers or names. If there is no unique column, the entire row can be compared.
  • Spaces and invisible characters at the end of the line will cause "look the same but report differences". In this case, please select the option to clean up the whitespace.
  • The results are listed and counted according to three categories: new addition, deletion, and modification; first judge the scale by looking at the quantity, and then check each item one by one.

🔍 Get the difference in three steps

Paste the two versions of data into the left and right input boxes respectively, select the separators shared by both sides, and then click Compare. The results will list the newly added, deleted and modified content line by line, and give a summary of the quantities. Before pasting, it is recommended to confirm that the number of columns on both sides is consistent with the order of the columns. This is the most likely place to cause distortion in the results, and is more important than any parameter setting.

Before pasting, make sure the number of columns on both sides is consistent with the order of the columns. This step is more important than any parameter.

🔑 Why is the primary key column important?

The primary key column determines "which row corresponds to which row." When there is a primary key, even if rows are inserted or deleted in the middle, the remaining rows can still be paired correctly, and the differences can be accurately located. When there is no primary key, it can only be aligned in row order. Once there is an extra row in the middle, all subsequent rows will be judged as modified, and the summary numbers will lose their meaning. Therefore, as long as there is a unique field such as number or name in the data, it should be regarded as the primary key.

Inserting a row when there is no primary key will cause all subsequent rows to be judged as modifications, and the summary will be distorted.

🧹 Clean first and then compare

Trailing spaces, tabs, and extra blank lines are the main sources of false differences: both sides look exactly the same, but report a lot of differences. After turning on blank sorting, this kind of interference will be eliminated first. In addition, it must be clear whether the header rows participate in the comparison: if the headers on both sides are written differently and are not ignored, the first row will be regarded as a content difference, which can easily make people mistakenly think that there is a problem with the data itself.

Spaces at the end of lines and redundant blank lines are the main causes of false differences. Sort them out first and then compare them.

📄 How to read the result

It is recommended to read the summary first and then the details: additions and deletions reflect the entry and exit of data, modifications reflect the rewriting of content, and the proportions of the three types of quantities can often illustrate the nature of the change. If the number of modifications is found to be unusually large, it is usually not because the data has been significantly modified, but because the columns are misaligned or the separators are inconsistent. At this time, you should go back to the input and re-check instead of checking the difference details one by one.

When the number of modifications is unusually large, first check column misalignments and separators instead of checking them one by one.

🔗 All keywords and tutorials

Keywords page of the tool12a

Return to tool home page

❓ FAQ

How many rows are supported?
It can be done within the tolerance range of the browser. When the amount of data is large, it is recommended to compare in batches.
Can I read the file directly??
This tool is mainly for pasting text; the file content can be copied and pasted in.
What are the separators??
Commonly used characters include tabs, commas and vertical bars, and the same type must be used on both sides.
Will the data be uploaded??
No. All comparisons are completed locally in the browser, and no upload request is initiated.
What to do if the column order is different?
First adjust the column names into the same order before comparing, otherwise a large number of false differences will occur.
Can the results be exported??
The text of the difference report can be copied for easy sending or archiving.