Skip to content

Browser tool

Preview a change to a list of keys

Try one text operation on a JSON array and see which original keys would meet. A six-row pattern-pin list separates existing repeats from matches introduced by lowercasing.

Preview key normalization

Paste a JSON array of strings and choose one operation. Compare each original key with its result and see which distinct keys acquire the same value. The preview runs in this tab and keeps all rows in their original order.

Up to 100,000 UTF-16 code units of JSON, 1,000 keys and 256 units per decoded original key. Empty strings, repeated keys and an empty array are valid. Use JSON escapes for line breaks inside strings.

The total length of transformed keys is limited to 100,000 UTF-16 code units. The serialized report is limited to 2,000,000 units.

Use canonical composition. For example, a base letter and a combining accent can compose into one code point.

0 / 100,000

Enable JavaScript to use this tool in this tab.

Establish the original groups

Paste sample-keys.json from the key normalization report reference. Choose none. Rows 1 and 2 already contain PIN. Rows 4 and 5 already contain OLD. Row 6 is the empty string.

Each array element has a row number, starting at 1. Two JSON spellings that decode to the same string count as the same original. The preview preserves the order of all six rows.

Try one operation

Choose lowercase and run the preview again. Rows 1, 2, 4 and 5 change. Row 3 already contains pin. The changed rows therefore play two different roles in the result.

Rows 1, 2 and 3 now share pin, from two distinct originals. Rows 4 and 5 also share an output, but both started with OLD. Only the first group counts toward newCollisionGroups.

Compare alternatives on the same input

The other choices are trim, NFC and NFKC. Each applies once to the original list. To compare two options, save the first result and rerun the original input with the other option.

Editing the input or option clears the previous result. The page previews at most 100 keys. The download contains the full set of before-and-after strings and group memberships. Keep it with the same care as the source.

Read a refusal in context

Supply a JSON array of up to 1,000 strings. Each decoded string may contain up to 256 UTF-16 units. Empty strings and exact repeats are valid inputs. Each surrogate must belong to a valid pair.

The complete input and the sum of transformed string lengths each have a 100,000-unit cap. The serialized report has a 2,000,000-unit cap. A refused run produces no report. Record the refusal and inspect the source before changing any key.

Reference sources

Continue with a check