Handy Dev Tools
Simple online tools for everyday tasks.

No favorites

    Base64 Encoder/Decoder
    Markdown to HTML
    HTML to Markdown
    URL Encoder/Decoder
    Unicode Escape Converter
    Unicode Encode/Decode
    SQL Formatter
    SQL Splitter
    JSON Formatter
    XML Formatter
    YAML Formatter
    GraphQL Formatter
    JSON to YAML Conversion
    YAML to JSON Conversion
    JSON to TOML Conversion
    TOML to JSON Conversion
    HTML Entity Encode/Decode
    TOML to YAML Conversion
    YAML to TOML Conversion
    CSV to SQL INSERT Conversion
    Markdown Table Generator
    JSON to XML Conversion
    XML to JSON Conversion
    UUID Generator
    ULID Generator
    Password Generator
    Hash Generator
    Lorem Ipsum Generator
    Lorem Picsum Image URL Generator
    Test Data Generator Tool
    QR Code Generator
    S3 Path Parser & Converter
    IP Address Calculator
    Subnet Split
    Subnet Consolidation
    CloudFront Signed URL Generator
    RDS Connection String Generator
    Coordinate Format Converter
    Geo Format Converter
    JWT Decoder & Parser
    Basic Auth
    Password Strength Analyzer
    Credit Card Validator
    RSA Key Pair Generator
    Case Conversion
    Romaji Conversion
    Roman Numeral Conversion
    Phonetic Code Conversion
    Character Counter
    Text Diff
    HTML Tag Remover
    Regex Tester
    Color Conversion
    Dice Roll
    Crontab generator
    Crontab parser
    Emoji Picker
    Unix Timestamp Converter
    HTTP Status Code Search
    Port Number Search
    MIME Type Lookup
    Base64 File Converter
    Image Base64 Encode/Decode
    User-Agent Parser
    URL Parser
    OGP Checker
    Commit Message Generator
    Chmod Calculator
    Terminal GIF Generator
    .env Parser & Validator
Ctrl+K

Text Diff

Visually display differences between two texts. Enter text in the left and right text areas or load from files to see added lines (green), removed lines (red), and modified lines highlighted in different colors.

Left text
Right text

Enter text in the left and right text areas to display differences

How to use

About this tool

Shows the diff between two texts with added, removed, and changed parts highlighted.

How to use

Enter both texts in the left and right panels; diff updates in real time; line numbers and wrap optional.

Options

Show line numbers: on/off. Wrap at right edge: on/off. When wrap is on, long lines break in the view and line numbers are shown per line.

Use cases

• Code/config changes • Pre-merge review • Proofreading • Contract versions

Privacy and data

Diff is computed in-browser; text is not sent to a server.

FAQ

Q: How does the diff algorithm work?
A: The tool uses a line-by-line diff algorithm (similar to the Unix diff command) to compare the left and right texts. Added lines are highlighted in green, removed lines in red, and unchanged lines are shown normally.
Q: Can I compare code files, not just plain text?
A: Yes. Paste any text content — source code, configuration files, JSON, SQL, Markdown, or prose. The tool treats all input as plain text and highlights line-level changes.
Q: What do the "Show line numbers" and "Wrap" options do?
A: "Show line numbers" adds line numbers to the left margin for easy reference. "Wrap" breaks long lines at the panel edge so you can see the full content without horizontal scrolling.
Q: Is there a size limit on the text I can compare?
A: There is no enforced limit. Very large texts (tens of thousands of lines) may slow down the live diff render, but the result will still be computed correctly.
Q: Does this tool send my text to a server?
A: No. The diff is computed entirely in the browser. Your text is never sent to any server.