No Login Data Private Local Save

CLI Table Generator - Online JSON to Console Log Style

14
0
0
0

CLI Table Generator

Convert JSON arrays into beautiful terminal-style ASCII/Unicode tables

┌┬┐Unicode Single
╔╦╗Unicode Double
+--+ASCII
|␣|Markdown
···Minimal
table-output
Waiting for valid JSON input...

Frequently Asked Questions

What is a CLI Table Generator?

A CLI Table Generator converts structured JSON data into text-based tables that mimic the appearance of command-line interface (CLI) output. These tables use characters like ┌┬┐ (Unicode) or +-| (ASCII) to draw borders, making them perfect for terminal logs, documentation, README files, and debugging output.

What JSON formats are supported?

The tool accepts any valid JSON array of objects. Each object's keys become column headers, and values populate the rows. It also handles arrays of primitives (strings, numbers), nested objects (auto-stringified), and irregular objects with varying keys. Single objects are automatically wrapped into a one-row table.

How does column width calculation work?

Column widths are dynamically calculated by scanning all rows to find the longest value per column, including the header text. A minimum width of 4 characters is enforced. You can set a maximum column width (20–50 chars or unlimited); values exceeding this are truncated with an ellipsis (…). The "Compact mode" reduces internal padding.

Which table styles are available?

Five styles are offered: Unicode Single (┌┬┐├┼┤└┴┘), Unicode Double (╔╦╗╠╬╣╚╩╝), ASCII (+-|), Markdown (pipe-separated for .md files), and Minimal (spacing-based alignment with subtle separators). Unicode styles look great in modern terminals; ASCII ensures maximum compatibility.

Can I copy the table to my clipboard?

Yes! Click the Copy button in the terminal preview header to copy the generated table as plain text. The copied text preserves all formatting and can be pasted directly into code editors, terminal emulators, documentation, chat messages, or any plain-text environment.

Is this tool free to use?

Absolutely. The CLI Table Generator is completely free with no registration, no ads, and no usage limits. All processing happens locally in your browser — your JSON data never leaves your device. Bookmark this page for quick access whenever you need to format JSON as a table.