Remove repeated JSON array values
This tool removes duplicate items from a top-level JSON array while keeping the first occurrence of each distinct value. Paste the array and choose Remove duplicates, then inspect the JSON result before copying or downloading it. An empty array is valid; an object, string or other scalar at the root is rejected because it has no array items to deduplicate.
Example: object order and value types
The example starts with {"id":1,"name":"Ada"} followed by the same object with its keys in the opposite order. Only the first object remains. The string "1" and the number 1 both remain because they have different JSON types. The second number 1 and second null are removed. The result contains four items: the first object, the string, the number and null.
Equality rules
Comparison is recursive. Object key order is ignored at every depth, but names, strings and types must match exactly. Array order matters: [1,2] differs from [2,1]. Empty objects and empty arrays are different. Strings are neither trimmed nor case-folded. The operation only removes items from the top-level array; an array contained inside an item is compared as a whole and retains its own repeated elements.
Numeric spellings such as 1, 1.0 and 1e0 represent the same parsed number. Negative zero equals zero. Decimal values use JavaScript floating-point precision, so distinct high-precision numeric spellings may become equal. Nonfinite and unsafe integer values are rejected, but this is not an arbitrary-precision number comparison tool. Encode precision-sensitive values as JSON strings when their exact spelling is part of identity.
Review before replacing source data
Repeated objects may represent separate events even if their fields are identical. This tool has no event ID, timestamp or business-rule knowledge. It does not merge fields, choose the newest record, or deduplicate by one selected property. Preserve the original file and confirm that whole-value equality matches your intended rule.
Input supports up to 200,000 characters, 20,000 total values and 64 nesting levels, with output capped at two million characters. Duplicate object keys are rejected as ambiguous. Processing stays in the browser and edits clear old results. Use JSON Value Type Analyzer to understand mixed arrays or JSON Key Sorter to organize object keys without removing items.
Nonzero numbers too small to remain nonzero in JavaScript, such as 1e-400, are rejected rather than silently becoming zero.





