# Text Diff - Online Text Comparison / Diff Tool

> Free online text diff tool: compare two texts line by line, highlight added and removed lines, and optionally ignore case and trailing spaces. Runs locally.

- URL: https://qilingtools.com/en/text-diff
- Category: Developer Tools (https://qilingtools.com/en/dev)
- Tags: [Text](https://qilingtools.com/en/tags/text), [Developer](https://qilingtools.com/en/tags/dev)
- Last updated: 2026-11-11
- Price: Free, no sign-up
- Privacy: Runs locally in the browser; files are never uploaded

Compare two blocks of text line by line to find added, removed and unchanged lines with color highlighting. Built on a longest-common-subsequence algorithm for clear results. Optionally ignore case or leading/trailing whitespace. Great for checking copy changes, config differences and code snippets, all locally.

## How to use

1. Paste the original text on the left
2. Paste the changed text on the right
3. Read the highlighted diff below

## Features

- Line diff: green added, red removed
- LCS-based for accurate alignment
- Ignore case and trailing spaces
- Counts added/removed lines, runs locally

## FAQ

### Can it compare Word or PDF?

This tool compares plain text. Copy the content out as text first, then paste it in.

### Is it line or character based?

Line based, which fits most copy and code cases; a small in-line change shows as a removed line plus an added line.

### Are my files or data uploaded?

No. Everything runs locally in your browser with no network upload, and is discarded when you close the page.

### Do I need to sign up or pay?

No. The site is completely free, needs no account and has no usage limits.

## Related tools

- [JSON Formatter](https://qilingtools.com/en/json): Free online JSON formatter: beautify or minify, validate with the exact line and column of any error, browse a collapsible tree, sort keys and escape strings.
- [Base64 Encode/Decode](https://qilingtools.com/en/base64): Free online Base64 encoder and decoder: convert text, images and any file to Base64, and Base64 back to text or files. UTF-8 and GBK text, data URIs and URL-safe Base64; decoded images are previewed and downloadable. Processed locally, never uploaded.
- [URL Encode/Decode](https://qilingtools.com/en/url-encode): Free online URL encoder and decoder: turn spaces, symbols and non-English text into percent-encoding such as %E4%BD%A0, or turn encoded links back into readable text. Handles single values or whole URLs, UTF-8 and GBK, and + as space. Real-time and local, no upload.
- [JWT Decoder](https://qilingtools.com/en/jwt): Free JWT decoder: read the header and payload, check expiry, and verify the signature with a secret, PEM, JWK or JWKS. Runs locally, nothing uploaded.
- [Timestamp Converter](https://qilingtools.com/en/timestamp): Free online Unix timestamp converter: convert timestamps and dates, auto-detect seconds or milliseconds, and show local, UTC, ISO 8601 and relative time.
- [Hash / Checksum](https://qilingtools.com/en/hash): Free hash calculator: MD5, SHA-1, SHA-256, SHA-384 and SHA-512 of text or files, with automatic comparison against a published checksum. Multi-GB files, no upload.
- [UUID Generator](https://qilingtools.com/en/uuid): Free online UUID generator: create UUID v4 (GUID) or time-ordered v7 in bulk with your browser's cryptographic RNG. Uppercase, no-hyphen and brace options, up to 100 at a time, one-click copy, generated locally.
- [Base Converter](https://qilingtools.com/en/base-convert): Free number base converter for binary, octal, decimal, hex and any base 2–36. Detects 0x/0b/0o prefixes and separators, with exact results for huge integers.
