Generate standards-compliant PostgreSQL ARRAY constructors and array literals from text, CSV, or JSON. Configure 18+ data types, build 2D matrices, and generate SQL expressions.
PostgreSQL arrays use 1-based indexing (array[1] is the first element). Inspect each parsed element, its PostgreSQL data type, and its internal representation.
| PG Index | Raw Value | Formatted Literal | Status / Type |
|---|
Easily generate production-ready PostgreSQL queries using your generated array, including containment, overlap, ANY/ALL filters, and UNNEST table expansions.
SELECT ARRAY['...'];
SELECT * FROM my_table WHERE column_name = ANY(ARRAY['...']);
SELECT * FROM my_table WHERE tags_column @> ARRAY['...'];
SELECT item, ordinality FROM UNNEST(ARRAY['...']) WITH ORDINALITY AS t(item, ordinality);
Inspects your array against PostgreSQL literal escaping rules, dimension rectangularity constraints, and element type validation.
PostgreSQL requires all sub-arrays in a multidimensional array to have identical lengths.
Enter your values line-by-line, comma-separated, or paste CSV or JSON array data.
Choose between 18+ PostgreSQL types including TEXT, INTEGER, NUMERIC, BOOLEAN, UUID, and JSONB.
Toggle between the standard ARRAY[...] constructor and the array literal '{"..."}' syntax.
Copy the array or generated SQL queries with one click, or export to `.sql`, `.txt`, or `.json` files.