DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
DevTools Surf logoDevTools Surf
AI / Modern DevAnimation / CSSAPI / Config
Sign in
HomeJSONJSON Patch

About JSON Patch

JSON Patch preview - JSON tool

Generate or apply RFC 6902 JSON Patch operations. Part of the DevTools Surf developer suite. Browse more tools in the JSON collection.

Use Cases

  • Generate minimal update payloads for PATCH API endpoints
  • Track configuration changes as auditable patch sequences
  • Apply incremental updates to large JSON documents efficiently
  • Build undo/redo systems using reversible patch operations

Tips

  • Generate RFC 6902 patch operations from two JSON documents
  • Apply a patch to transform a JSON document step by step
  • Validate patch operations before applying to production data

Fun Facts

  • RFC 6902 (JSON Patch) was published in April 2013, defining six operations: add, remove, replace, move, copy, and test.
  • JSON Patch uses JSON Pointer (RFC 6901) for path references, where '/foo/0' means the first element of the 'foo' array.
  • The 'test' operation in JSON Patch acts as a precondition check, failing the entire patch if the expected value does not match.

FAQ

What is a JSON Patch?
A JSON document describing a sequence of changes (add, remove, replace, move, copy, test) to apply to another JSON document. Defined in RFC 6902 and widely used in REST APIs and CRDTs.
Can I generate a patch from two JSON files?
Yes — paste the 'before' and 'after' documents and the tool emits a patch that transforms one into the other. Paste the patch and a source document to apply it.
What's the difference between JSON Patch and JSON Merge Patch?
JSON Patch is an array of operations — precise but verbose. JSON Merge Patch (RFC 7396) is simpler: it looks like a partial JSON document. Use Merge Patch for simple updates, JSON Patch for moves, removals, and conditional replacements.
Does it validate patches before applying them?
Yes. If a 'test' operation fails or a path doesn't exist, the tool reports the error instead of producing a corrupt result.

Related JSON Tools

JSON FormatterJSON ValidatorJSON ViewerJSON StringifyJSON DiffJSONPath TesterJSON Sort KeysJSON Flatten / Unflatten
New · Flagshipsimple REST client

REST Handler — Collections, env vars, history, cURL converter

Send requests, save collections (nested), swap environments, and convert between cURL / Collection JSON / REST Handler YAML.

Open

Popular tools

The most-used tools on DevToolsSurf, one click away.

Encoding & crypto

  • Base64 Encode
  • Base64 Decode
  • URL Encoder
  • URL Decoder
  • Hash Generator
  • JWT Decoder
  • JWT Encoder
  • UUID Generator
  • ULID Generator
  • Password Generator
  • Bcrypt Hash Tester

Converters

  • CSV to JSON
  • JSON to CSV
  • XML to JSON
  • JSON to XML
  • HTML → Markdown
  • HTML → React JSX
  • cURL to Code
  • Collection JSON → cURL
  • Swagger to Collection JSON
  • JSON → Go Struct
  • JSON → TypeScript Types

JSON & YAML

  • JSON Formatter
  • JSON Validator
  • JSON Viewer
  • JSON Minifier
  • JSON Diff
  • JSONPath Tester
  • YAML Formatter
  • YAML to JSON
  • JSON to YAML

Text & regex

  • Regex Tester
  • Text Diff
  • Case Converter
  • Word Counter
  • Markdown Preview
  • Slug Generator
  • Lorem Ipsum Generator
  • Markdown → PDF

CSS & color

  • CSS Beautifier
  • Minify CSS
  • Color Converter
  • Gradient Generator
  • Contrast Checker
  • Color Palette Generator
  • Flexbox Playground
  • Tailwind → CSS

Generators

  • QR Code Generator
  • Mock Data Generator
  • Favicon Generator
  • .gitignore Builder
  • README.md Generator
  • Dockerfile Generator
  • Sitemap Generator

API & networking

  • REST Handler
  • HTTP Header Analyzer
  • IP Address Lookup
  • CIDR Calculator
  • User-Agent Parser
  • HTTP Status Reference
  • OpenAPI Viewer

Date & time

  • Timestamp Converter
  • Timezone Converter
  • Cron Expression Parser
  • Duration Calculator
  • Age Calculator
  • Date Format Converter

Images

  • Image Converter
  • Image Resizer (Batch)
  • SVG Optimizer
  • Base64 ↔ Image
  • WebP ↔ AVIF Converter
  • Image Compressor

PDF tools

  • PDF Merger
  • PDF Splitter
  • PDF Compressor
  • Markdown → PDF
  • EPUB → PDF
  • MOBI / AZW → PDF
  • DOCX → PDF
  • HTML → PDF

Resources

  • Community feed
  • Themes marketplace
  • Pricing & credits
  • Privacy policy
  • Terms of service
  • Sitemap
  • robots.txt

Your account

  • Sign in
  • Dashboard
  • Run history
  • My profile
  • Settings
DevTools Surf logo
DevTools Surf919+ tools

Fast · privacy-first · client-side · © 2026

Home·Feed·ThemesPricing·Sign inPrivacy·Sitemap Feedback