Compare JSON keys
Paste two JSON files, such as en.json and ja.json, to find keys that are missing on one side, placeholders that don't match, empty translations and duplicate keys. Nothing is uploaded.
What it finds
- Missing keys: in the base file but not in the file you're checking. You can copy them as JSON, with the base values, to fill in.
- Extra keys: only in the file you're checking. Often leftovers from renamed or deleted keys.
- Type mismatches: for example a string on one side and a nested object on the other.
- Placeholder mismatches:
{name},{{count}},%s,%1$d,%@and%{name}that appear on only one side. - Empty values: a translation that is an empty string.
- Duplicate keys: the same key twice in one object. Normal JSON parsers keep only the last one without warning, so the first value is silently lost.
- Same as base: values identical to the base, which may be untranslated. Words like "OK" can be legitimately identical, so treat this as a hint.
Limits
- Nested objects are compared by dot path (
nav.home). Arrays are compared as single values, not item by item. - Only standard JSON is accepted. Comments and trailing commas (JSON5, JSONC) are reported as errors.
- Placeholders are detected by common patterns. ICU messages are checked for their argument names only, not for plural branches.
- It compares two files, so a key missing from both, but used by your code, is not found.
Real case: an older version of this site showed 174 strings in English in its Japanese mode.
FAQ
Are my files uploaded?
No. Both files are read and compared by JavaScript in this page. Nothing is sent to a server.
Does it work with YAML or .properties files?
Not yet. Only JSON is supported.