Loading…
Loading…
Compare two texts or code files side by side, with changed words highlighted. Ignore whitespace or case, and export a unified .diff patch that git apply accepts.
Paste text into both panes to compare them, or click Load sample.
Paste the original on the left and the changed version on the right, or drop or upload a file into each pane. Swap flips them if you pasted them the wrong way round. The diff updates as you type.
Removed lines are red and added lines are green, with the exact words that changed highlighted inside each line. Side by side lines the two versions up; Unified shows one column, like git diff.
Hide unchanged lines keeps 3 lines of context around each change and folds the rest; click a fold to open it. Ignore whitespace skips indentation and spacing changes, and Ignore case skips capitalization-only changes.
Copy or download the result as a standard unified .diff patch. It applies with git apply or patch, and it's the format code reviewers and issue trackers expect.
No. The comparison runs entirely in your browser, so you can diff config files, connection strings, contracts, or proprietary code without it leaving your machine.
All spaces and tabs inside each line, so re-indented code, reformatted SQL, or tabs converted to spaces don't show as changes. Line breaks still count, so a line split in two is still a change. The display and the patch always show your original text, not a normalized copy.
Yes. It's a standard unified diff with 3 lines of context, including the "No newline at end of file" marker when needed. Save it and run git apply changes.diff or patch original.txt changes.diff. With Ignore whitespace or Ignore case on, lines that differ only that way are left out of the patch, just like diff -w or -i.
Diffs work line by line: an edited line is a removed line plus an added line. When the two are similar, the changed words inside them are highlighted so you can see the actual edit. When they have little in common, the whole line is highlighted, because marking every word would just be noise.
Windows (CRLF) and Unix (LF) line endings are treated as equal, so a file saved on a different OS doesn't show as entirely changed. You still get a note that they differ. A missing newline at the very end of a file is a real difference to Git and other tools, so it's flagged and kept in the patch.
Data
Format, validate, and minify JSON in your browser. Paste it, upload a file, or load it from a URL. Errors show the exact line and column.
C# / .NET
Paste JSON and get C# model classes or records, ready for System.Text.Json or Newtonsoft.Json. Nested objects, arrays, nullable types, dates, and GUIDs are inferred for you.
SQL
Format and beautify SQL queries for SQL Server (T-SQL), PostgreSQL, MySQL, Oracle, and more. Set the indentation, keyword case, and layout, and get the exact line of any syntax error.
Images
Preview SVG code live and safely, check its size and viewBox, fix common errors, and export it as PNG, a data URI, a CSS background, or an <img> tag.
Images
Create QR codes for links, Wi-Fi logins, email, phone, and SMS. Set error correction and colors, then download a crisp SVG or PNG. Static codes, no tracking, no sign-up.