Pretty Diff - The difference tool


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.

Base Text

New Text

Reporting data which updates with each use of the tool

Diff Report

Beautify Report

Minify Report

Usage Statistics

Main Options

CodeMirror Editor

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

Indent Style/Script (Markup Only)

Presume HTML (Markup Only)

Force Indentation (Markup Only)

IE Comments (HTML Only)

Alphabetic Sorting (CSS Only)

Style of Indent (JavaScript Only)

Function Space (JavaScript Only)

Empty Lines (JavaScript Only)

Else on New Line (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: