Pretty Diff - The difference tool

Introduction

Use this free open-source file comparison tool to accurately diff between file versions regardless of comments or minification to the whitespace. This tool is written entirely in JavaScript and it can also beautify (pretty-print) and minify HTML. Since this tool is client-side JavaScript only, meaning that the execution occurs on the local computer only and the resulting output is not transmitted or stored, it is safe for processing classified information. Please note that this tool is not a validation service. Pretty Diff is a language aware code comparison tool featuring automatic language detection. Some of the supported languages include: XML, SGML, JSTL, HTML, CSS, SCSS, CSV, JavaScript, and JSON.

Confidential: This tool executes entirely on the client computer without leaking any submitted data over the internet.

Pretty Diff recently updated to support CodeMirror. Use the URI parameter codemirror=false to disable CodeMirror.

Updated:

Reporting data which updates with each use of the tool

Diff Report

Beautify Report

Minify Report

Usage Statistics

Main Options

Function

Input display

Additional options

Base Text

New Text

Diff Options

Diff Report Options

Print or Save Output

Diff View Type

Difference Reduction Options

Diff Quotes

Trailing Semicolons

Code Comments

Ignore Content (Markup / JavaScript)

Beautification Options

Style of Indent (JavaScript Only)

Indent Style/Script (Markup Only)

Presume HTML (Markup Only)

IE Comments (HTML Only)

Force Indentation (Markup Only)

Function Space (JavaScript Only)

Empty Lines (JavaScript Only)

Please post comments, feedback, and requests on the Pretty Diff mailing list.

Created by Austin Cheney on 3 Mar 2009. This is a heavy modification of JavaScript tools: jsdifflib, jspretty, markup_beauty, and other custom written libraries.

Special thanks to Harry Whitfield, Andreas Greuel, Maria Ramos, and countless others.

Pretty Diff is used by these great organizations: