Paste or type to begin

Original on the left, modified on the right.

Compare two Ruby files

Compare Ruby source code with full syntax highlighting. Perfect for reviewing Rails pull requests, comparing gem implementations, or spotting changes. Supports blocks, modules, mixins, and all Ruby features.

Features

Frequently asked questions

Can I compare Rails files?
Yes. Controllers, models, views, and any Ruby file can be compared.
Can I format Ruby code?
Auto-formatting is not available for Ruby, but you can use the ignore whitespace option.
Does it highlight symbols and blocks?
Yes. Ruby symbols, blocks, procs, and string interpolation are all highlighted.

More diff tools