Paste or type to begin

Original on the left, modified on the right.

Compare two Python files

Compare Python code with full syntax highlighting. Perfect for reviewing pull requests, comparing function implementations, spotting indentation issues, or tracking changes across versions. Supports Python 3 syntax including f-strings, type hints, and async/await.

Features

Frequently asked questions

Does it handle Python indentation?
Yes — the diff engine compares indentation precisely, and you can toggle "Ignore whitespace" if needed.
Does it support type hints?
Yes. Python type annotations, f-strings, dataclasses, and all modern Python syntax are highlighted.
Can I compare Jupyter notebook code?
You can paste code cells from notebooks to compare them here.

More diff tools