Text diff
Paste two versions and see what changed. Line mode for code and configuration, word mode for prose.
Additions carry a plus and an underline, removals a minus and a strike, so the two are told apart without depending on colour.
Paste something into both boxes to see what changed.
Questions
- Is what I paste sent anywhere?
- No. Every tool in this kit runs in the page itself. There is no server here that receives what you paste, and you can check it in your browser's network tab: using a tool produces no request carrying your input at all.
- When should I use word mode instead of line mode?
- For prose. A line diff reports a whole paragraph as changed because one word in the middle of it moved, which tells you nothing. Word mode finds the word.
- Does a trailing newline count as a difference?
- No. Both sides are normalised to end the same way before comparing, because one file ending in a newline and another not is a difference nobody means and every editor produces. Windows line endings are normalised too, so a CRLF file against an LF one is not reported as entirely different.
- Is whitespace inside a line ignored?
- No. Two lines differing only by indentation are a real difference, and in a language where indentation is syntax it is the whole difference.
The other tools here
- JSON formatter, format, minify and validate
- Base64 encoder, encode and decode, text or file
- URL encoder, encode and decode, two rules
- UUID generator, version 4, one to a hundred
- Hash generator, sha-256, sha-1 and md5 at once
- JWT decoder, header, payload and expiry
- Regex tester, live matches, groups and flags
- Timestamp converter, unix time to a date, and back
- Cron explainer, a schedule, in plain english
- Colour converter, hex, rgb, hsl, and a contrast check
- Markdown preview, live preview, and copy the html
- JSON to CSV, an array of objects into a spreadsheet