Shuffle a JSON array or JSONL file
Drop a file or paste JSON. Every record is checked for the same keys, then shuffled into a random order you can download.
- Free, no sign-up
- Nothing uploaded
- JSON, JSONL, NDJSON
or drop one here · .json .jsonl .ndjson
Nothing handy? Try one:
How it works
- Drop a file or paste. A JSON array
[ {...}, {...} ], an object with a list inside ({"items": [ ... ]}), or JSON Lines with one record per line. - It checks first. Every record must have the same keys as record 1, no nested objects and no key twice. If something differs, it names the keys and records and shuffles nothing until you decide.
- It shuffles fairly. A Fisher-Yates shuffle makes every order equally likely. The seed is shown, so the same seed gives the same order again.
- Records stay as written. Only the order changes. Long numbers, accents, escapes and spacing are kept exactly.
Questions
- Is my file uploaded?
- No. The file is read, checked and shuffled inside your browser tab. Only the optional AI step sends anything: the key names, how many records have each, and up to three short example values per key, and only when you press its button.
- Is the shuffle really random?
- Yes. It is a Fisher-Yates shuffle, so every order is equally likely, driven by a seeded generator with no modulo bias. Each shuffle gets a new random seed; type the same seed again to get the same order back.
- Why does it refuse to shuffle my file?
- Before shuffling it checks that every record has the same keys and no nested objects, because a list with mixed shapes usually means a broken export. The page names the keys and records that differ. Leave a key out of the check, allow nested values, or fix the names, and it shuffles.
- Does shuffling change my records?
- No. Each record is moved exactly as it was written, including long numbers, escapes and spacing; only the order changes. Converting JSON to JSONL removes the spaces between values inside each record, and renaming keys changes only those key names.
- What does "the values of one key" do?
- The records stay in place and only that key's values are swapped around between them, for example to break the link between names and scores in test data.
- How big a file can it take?
- Files up to 100 MB open; very large files take a few seconds. Above 1 MB the box shows a note instead of the text, and the preview shows the first lines.