Tools
English

Neogie FileDiff · Developers and SEO

Compare two files or folders: text and bytes

Drop two files or two folders: differences appear at once, by line for text and by byte for everything else.

File or folder A (original)

Drop a file or a folder here

Nothing chosen yet.

File or folder B (modified)

Drop a file or a folder here

Nothing chosen yet.

To compare two pasted texts rather than files, use Neogie Diff

Result

Choose or drop two files, or two folders: the comparison appears here.

Everything happens in your browser: nothing you type is sent.

How do you compare two files?

Drop the original file in zone A and the modified file in zone B, or use the "Choose a file" buttons. For two text files, the tool reads the encoding (UTF-8, UTF-16 or, failing that, Windows-1252), detects the line endings and shows the added, removed and modified lines, side by side or unified, with word-level or character-level detail. The patch in unified diff format can be copied or downloaded.

A binary file is compared byte by byte: sizes, number of different bytes, the list of different ranges with start, end and length in hexadecimal and decimal, then a hexadecimal view of both files with the differing bytes highlighted. The SHA-256 checksum of each file is also computed: two equal checksums prove the contents are identical.

What about two folders?

Drop a folder in each zone, or pick it with "Choose a folder". The tool lists the relative paths and tells you for each whether it is added, removed, modified or identical. Two files of different sizes are modified outright; at equal size, the SHA-256 checksums decide. The "Compare" button of a modified file opens its comparison under the table, and you can hide identical files. For two pasted texts, see Neogie Diff.

Limits

  • Line-by-line comparison: 20 MB at most per file; beyond that, the tool compares bytes.
  • Byte-by-byte comparison: 500 MB at most per file, read in chunks to spare memory.
  • Folders: at most 50,000 files read per folder; only files count, not dates, permissions or empty folders.
  • If dragging a folder does not work in your browser, "Choose a folder" does the same thing.

Frequently asked questions

Are my files sent anywhere?

No. Files are read and compared in your browser, by background workers; nothing is transmitted. Only display settings (case, spaces, view, hiding identical files) are kept in this browser, never the files or their names.

Why is a file treated as binary?

Because it contains null bytes (except UTF-16 with a byte order mark) or a high share of control characters. For two text files, a button also lets you compare byte by byte.

What does the line-ending warning mean?

Windows ends lines with CRLF, Unix and macOS with LF. The line comparison treats them as equivalent: a file converted from one to the other does not appear modified. The tool points it out, and the checksums show that the bytes differ.

How does a SHA-256 checksum prove two files are identical?

SHA-256 summarizes content in 64 hexadecimal characters. Different contents practically always give different checksums, so two equal checksums mean identical files.

Can the resulting patch be applied?

Yes. It is in unified diff format, with the line endings of file A, and applies with patch or git apply. It carries all the differences, even those the settings hide on screen.

Similar tools

Neogie SnippetSERP Snippet Preview ToolType a title and a description: the simulated result shows where they will be cut off. Neogie Base64Base64 Encoder and Decoder: Text, Files and JWTType on one side, the result appears on the other. Text, files and JWT tokens, with nothing uploaded. Neogie CRC32CRC-32 Calculator for Text and FilesThe checksum of a text as you type, or that of a file you want to compare. Neogie BinaryBinary Translator: Text to Binary and BackType a message to see it in 0s and 1s, or paste binary to read it. Neogie HexText to Hex and Hex to Text ConverterType text to see its bytes, or paste hexadecimal to get the text back. Neogie PunycodePunycode Converter for Internationalized Domain Names (IDN)Turn a domain name with accents or other scripts into its “xn--” form, and back. Neogie Ascii85Ascii85, Z85 and Base85 Encoder and DecoderText or files to Base85 and back: five characters for every four bytes. Neogie Base32Base32 Encoder and DecoderText or files to Base32 and back, with the three most used alphabets. Neogie Base58Base58 and Base58Check Encoder and DecoderText or files to Base58 and back, with the Base58Check checksum if you want it. Neogie URLURL Encoder and Decoder (Percent-Encoding)Type on one side, the other fills in: addresses, parameters and form data, with every part spelled out. Neogie EntitiesHTML Entity Encoder and DecoderShow code or special characters without breaking the page: the result follows your typing. Neogie CSSCSS Formatter, Checker and MinifierPaste your style sheet: it is tidied up or compacted, and errors are reported. Neogie HTMLHTML Formatter, Checker and MinifierPaste your code: it is indented or compacted instantly, and structural errors are reported. Neogie JSONJSON Formatter and Validator OnlinePaste your JSON: it is checked and tidied up instantly, with the line and column of every error. Neogie SQLSQL Formatter Online: Indent and MinifyPaste a one-line query: it comes out split into clauses, ready to review. Neogie XMLXML Formatter and Validator OnlinePaste your XML: it is checked and indented instantly, with the line and column of the first error. Neogie MetaMeta Tag and Open Graph GeneratorFill in the fields: the preview and the code to paste into your page update instantly. Neogie RobotsRobots.txt Generator and TesterBuild the rules for search engine crawlers, then check which addresses they can visit. Neogie SitemapXML Sitemap Generator from a URL ListPaste your page URLs: your XML sitemap is ready to download. Neogie RegexRegex Tester Online: JavaScript Regular ExpressionsType a pattern and some text: matches and their groups are colored as you type.