Nanosecond Timer
High-precision online stopwatch with nanosecond accuracy. Lap times, split times, and copy results.
Start typing to search tools...
Compare two code or text files side-by-side. Highlights added, removed, and modified lines in real time. Supports unified view, syntax highlighting, and export.
The Code & Text Diff Checker is a free, browser-based tool that compares two versions of any text or code and highlights exactly what changed. It uses a Myers diff algorithm - the same algorithm used by Git - to compute the minimal set of additions and deletions needed to transform the original text into the modified version. All processing happens locally in your browser; your code is never sent to any server.
The tool supports inline character-level diffing for modified
lines, so you can see not just which lines changed but exactly which characters
within those lines are different. It also supports collapsing unchanged sections to keep the view focused on what matters, and provides export options including standard
.patch
files compatible with the Unix patch
command and Git.
Use the ignore whitespace option to skip over formatting-only changes like re-indentation, and ignore case to treat uppercase and lowercase letters as identical. The language selector labels the diff with the appropriate language name for context - useful when exporting or sharing diffs with teammates.
Side-by-side view displays the original and modified text in two columns. Deleted lines appear on the left in red, added lines appear on the right in green, and unchanged lines appear in both columns. This layout makes it easy to compare corresponding sections and understand the context of each change.
Unified view shows both versions in a single column, with
removed lines prefixed by -
and added lines prefixed by +. This is the same format produced by git diff
and is the standard format for patch files. It uses less horizontal space
and is better suited for narrow screens or long lines.
A diff checker compares two versions of text or code and highlights the differences between them. Added lines are shown in green, removed lines in red, and modified parts within a line are highlighted inline. It's an essential tool for code review, debugging, and tracking changes.
Side-by-side view shows the original and modified text in two columns, making it easy to compare corresponding lines. Unified view shows both versions in a single column, with added lines marked with "+" and removed lines with "-" - similar to the output of the "git diff" command.
When enabled, the diff ignores differences that consist only of whitespace changes (spaces, tabs, indentation). This is useful when comparing code that has been reformatted or re-indented without any logical changes.
A .patch file is a standard format for representing differences between two files. It uses the unified diff format (the same format as "git diff") and can be applied to a file using the "patch" command to reproduce the changes. Patch files are widely used in open-source development for sharing code changes.
No. All diff computation happens entirely in your browser using JavaScript. Your code never leaves your device.
The diff checker supports syntax highlighting for JavaScript, TypeScript, JSON, HTML, CSS, Python, SQL, Markdown, and plain text. Select the language from the dropdown to enable highlighting.
High-precision online stopwatch with nanosecond accuracy. Lap times, split times, and copy results.
Create optimized .cursorrules and .clinerules files for Cursor, Windsurf, and Cline.
Convert text to beautiful ASCII text art banners instantly. Customize fonts, characters, spacing, and generate code comment blocks with 100% privacy.
Encode and decode Base64 online. Supports text and files. Free, fast, and private.