How to Use ArrayDiff - Complete Guide
Learn how to compare arrays online with our free array diff tool. Follow these simple steps to detect changes in Python lists, JavaScript arrays, PHP arrays, and more.
1. Paste Your First Array
Copy and paste your first array (from any programming language) into the left input panel. Supports arrays with strings, numbers, objects, and nested arrays from Python, JavaScript, PHP, Ruby, Go, and more.
[{"name": "John", "age": 30}, {"name": "Jane", "age": 25}]2. Paste Your Second Array
Copy and paste your second array (from any programming language) into the right input panel for comparison. The tool automatically detects the format and structure.
[{"name": "John", "age": 31}, {"name": "Bob", "age": 28}]3. Compare Arrays
Click "Compare Arrays" to see the differences highlighted in real-time. Added elements are green, removed are red, and modified are yellow.
⌨️ Keyboard shortcut:Ctrl+Enter (Cmd+Enter on Mac)
4. Analyze Results
Review the detailed comparison results with element counts and visual indicators for each type of change:
- 🟢 Green: Added elements
- 🔴 Red: Removed elements
- 🟡 Yellow: Modified elements
- ⚪ Gray: Unchanged elements
💡 Pro Tips
- Use Sample Data: Click "sample data" link to load example arrays and see how the tool works
- Keyboard Shortcuts: Ctrl+L to load sample data, Ctrl+Enter to compare
- Privacy First: All processing happens in your browser - your data never leaves your device
- Works Offline: Once loaded, the tool works without internet connection
- Any Language: Supports arrays from Python, JavaScript, PHP, Ruby, Go, Java, C#, and more