Array Generator

Convert a list of items into an array for your favorite programming language.

About this tool

Turns a plain list of items into a ready-to-paste array literal in your target language — with the right brackets, quote style, and separators — so you're not hand-formatting fixture data or test arrays.

How to use it

  1. Paste your items, one per line, into the input box.
  2. Pick a language template, wrapper style, quote type, and delimiter — or use a Quick Preset for common combinations.
  3. Copy the generated array literal from the output box.

FAQ

Are my settings remembered between visits?

Yes — your last-used template, wrapper, quote style, and delimiter are saved in your browser's local storage, so the tool starts where you left off.

What's the difference between the Quick Presets and manually setting each option?

The presets just apply a common combination in one click (e.g. "SQL IN (...)" sets parentheses wrapping with single quotes) — every preset's result is also reachable by setting the individual options yourself.