Android pattern lock
Convert an Android unlock pattern between a digit sequence and grid coordinates, and back.
Android pattern lock
Android's screen-unlock pattern connects dots on a 3×3 grid, numbered left to right and top to bottom from 1 to 9. This tool converts a pattern between two written forms — a digit sequence such as 1235789, and a list of zero-indexed grid coordinates such as 0,0;1,0;2,0 — and back again. It's useful for documenting a pattern in a test plan, recreating one from written notes, generating sample patterns for app QA, or working through pattern-lock exercises in a security course.
Choose the input format and the output format independently, so the tool works as a converter in either direction or as a validator that simply checks a pattern and reproduces it in the same format. Turn on batch mode to treat each line of input as its own pattern and convert a whole list at once, one result per line; add a blank line between results if that makes it easier to select and copy a single converted pattern out of a longer batch.
Every pattern must connect at least 4 dots and at most 9, and no dot may repeat — the same rule Android enforces on the lock screen itself. An invalid line, whether it's the wrong character, an out-of-range coordinate, or a dot used twice, is reported with the line number so you can fix it without losing the rest of the batch. Windows (CRLF) and Unix (LF) line endings are both handled the same way.
Everything runs locally in your browser. No pattern is uploaded, logged or stored anywhere, which matters for anything touching device security. Copy the result, download it as a .txt file, or send the output straight back into the input to convert it again.