TEXT WORKSPACE

Code & Text Compare

Compare exact lines in inline or side-by-side views.

Input is processed on this site only when you run the tool. The application does not save inputs or results.

WORKBENCH code-compare Server

input.txt

Ln 1, Col 1UTF-8 bytes1 line

changed.txt

Ln 1, Col 1UTF-8 bytes1 line

Result result.json

A little clarity goes here.

Run the tool to see your result.

Awaiting a resultJSON
Ctrl ↵

Ready. Run explicitly; typing and pasting do not send requests.

UTF-8 text, at most 32768 bytes per input. Tab leaves the editor. Plain text disables syntax colors. Browser textareas may normalize line endings to LF.

A QUICK WALKTHROUGH

A familiar workflow,
with room to focus.

When to use Code & Text Compare

Compare exact revisions of a small source snippet, configuration text or note and inspect which lines were removed or added.

Read the result

Line endings and a missing final newline are meaningful. The display is a deterministic text diff, not language-aware equivalence, a character diff or a patch to apply.

SEE IT IN PRACTICE

Worked examples

Sample input. A result you can inspect.

Compare example

Original

const name = 'Example';
console.log(name);

Changed

const name = 'Example';
console.info(name);
Comparison view
Side by side

Expected result

{"view":"side-by-side","equal":false,"rows":[{"change":"equal","leftLine":1,"rightLine":1,"left":"const name = 'Example';\n","right":"const name = 'Example';\n"},{"change":"removed","leftLine":2,"rightLine":null,"left":"console.log(name);\n","right":null},{"change":"added","leftLine":null,"rightLine":2,"left":null,"right":"console.info(name);\n"}],"inline":"  const name = 'Example'; ⟨LF⟩\n- console.log(name); ⟨LF⟩\n+ console.info(name); ⟨LF⟩\n"}

Formats, limits and common errors

Reduce line count or input size. Inline markers explicitly label line endings.

Longest common subsequence definition ↗ (opens in a new tab)

Find your tool

Use Tab or arrow keys to navigate

JSON Formatter & ValidatorJSONJSON MinifierJSONJSON CompareJSONURL Encoder / DecoderEncodingBase64 Encoder / DecoderEncodingHTML Entity Encoder / DecoderEncodingJWT DecoderSecurityHash GeneratorSecurityPassword GeneratorSecurityToken GeneratorSecurityWord & Character CounterTextUUID GeneratorUtilitiesUnix Timestamp ConverterUtilitiesXML to JSONJSONBcrypt Hash & VerifySecurityRegex TesterTextJSON to CSVJSONCSV to JSONJSONJSON Tree ViewerJSONCode & Text CompareTextURL ParserUtilitiesCron ExplainerUtilitiesColor ConverterUtilitiesJSONL ValidatorAI DevelopmentJSONL FormatterAI DevelopmentPrompt Template BuilderAI DevelopmentToken Count EstimatorAI DevelopmentText ChunkerAI DevelopmentRAG Chunking PreviewAI DevelopmentChat Messages JSON ValidatorAI DevelopmentAI Function / Tool Schema ValidatorAI DevelopmentPrompt Version ComparisonAI DevelopmentAI Request Payload FormatterAI Development