ComparLab
Code

Processed locally in your browser

Compare Code Online

Review two versions of source code in a focused diff workspace. Choose a language, hide unchanged lines, and inspect changes without uploading code.

Live

Original

Paste or drop a file

Changed

Paste or drop a file

Your differences will appear here

Paste or upload two versions, then compare.

How it works

  1. Paste, type, or open both versions from your device.
  2. Choose the precision and cleanup options that fit your content.
  3. Review additions and removals side-by-side or as a unified diff.

Useful features

  • Language selection and extension-based detection
  • Side-by-side and Git-style unified views
  • Line numbers and long-line wrapping control
  • Local file loading for common source formats

Common uses

  • Reviewing script and source-file versions
  • Finding a regression during debugging
  • Inspecting configuration and pull-request-style changes

Tips for a cleaner comparison

  • Disable line wrapping for alignment-sensitive code.
  • Ignore whitespace for broad refactors only when indentation is not significant.
  • Use the dedicated SQL, Java, or YAML page for focused workflows.

Related comparison tools

Frequently asked questions

Does ComparLab execute my code?

No. Source code is treated strictly as text and never executed.

Can I upload source files?

Yes. Common source extensions are read locally, and the language selector follows a recognized extension.

Can I hide unchanged lines?

Yes. Enable Hide unchanged to focus the result on additions and removals.

More comparison tools are coming

PDF, Word, Excel, and image comparison are planned for a future release. They are not part of this version, and there are no inactive buttons pretending otherwise.