Σύγκριση κειμένων (Diff)
Συγκρίνετε δύο κείμενα και επισημάνετε τις προστιθέμενες και αφαιρεμένες γραμμές, άμεσα και στο πρόγραμμα περιήγησής σου.
Σχετικά εργαλεία
Πώς να χρησιμοποιήσετε το Σύγκριση κειμένων
- 01
Επικολλήστε το πρωτότυπο κείμενο αριστερά και το τροποποιημένο δεξιά.
- 02
Προαιρετικά αγνοήστε διαφορές πεζών/κεφαλαίων ή κενών.
- 03
Διαβάστε τη διαφορά γραμμή προς γραμμή: πράσινο σημαίνει προστέθηκε, κόκκινο σημαίνει αφαιρέθηκε.
What this diff checker does
This text diff checker compares two blocks of text and highlights exactly what changed: which lines were added, which were removed, and the specific words within a changed line. Green marks additions, red marks removals.
Because the comparison runs entirely in your browser, it is fast and private, suitable even for confidential documents and code that you would not want to paste into a server-side service.
The algorithm behind it
It uses a longest-common-subsequence diff, the same core algorithm Git and most code-review tools use, so it reports the smallest, clearest set of changes rather than flagging everything after the first difference.
Ignore case or whitespace
Options let you ignore case or whitespace, which is useful when the only real differences are meaningful ones and you do not want indentation changes or capitalization to clutter the result.
What you can compare
Line-based diffing works equally well for source code, configuration files, logs, JSON, and ordinary prose, so it is handy for comparing two versions of a contract, spotting what changed between two config files, or reviewing an edit to an article.
Paste the original on one side and the changed version on the other, toggle the options you need, and the differences appear immediately.
Συχνές ερωτήσεις
Πώς λειτουργεί η σύγκριση;
Συγκρίνει τα δύο κείμενα γραμμή προς γραμμή με διαφορά μεγαλύτερης κοινής υπακολουθίας, την ίδια προσέγγιση που χρησιμοποιεί το Git, ώστε να λαμβάνετε το μικρότερο σύνολο αλλαγών.
Ανεβαίνει το κείμενό μου κάπου;
Όχι. Η σύγκριση εκτελείται εξ ολοκλήρου στο πρόγραμμα περιήγησής σου. Τίποτα δεν αποστέλλεται σε διακομιστή.
Μπορεί να συγκρίνει κώδικα ή αρχεία ρυθμίσεων;
Ναι. Η σύγκριση ανά γραμμή λειτουργεί εξίσου καλά για πηγαίο κώδικα, αρχεία ρυθμίσεων, αρχεία καταγραφής και απλό κείμενο.