Skip to content
100% local

Android pattern lock

Convert an Android unlock pattern between a digit sequence and grid coordinates, and back.

Input
Output

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.

FAQ

How is the grid numbered?
Dots are numbered 1 to 9, left to right and top to bottom: 1, 2, 3 on the top row, 4, 5, 6 in the middle row, and 7, 8, 9 on the bottom row. Grid coordinates use the same layout, 0-indexed as column,row.
What's the shortest valid pattern?
Four dots. Android's lock screen won't accept anything shorter, and this tool enforces the same minimum.
Can a pattern reuse a dot?
No. Each of the 9 dots can appear only once in a pattern, so a repeated digit or coordinate is reported as an error.
What does batch mode do?
It treats each non-blank line of input as its own pattern and converts them all at once, one result per line.
Is my pattern uploaded anywhere?
No. Conversion runs entirely in your browser — nothing you type here is sent to a server or stored anywhere.