Lewati ke konten utama

Generator Tabel & Kotak ASCII

Ubah baris CSV atau nilai yang dipisahkan tab menjadi tabel ASCII yang rata, digambar dengan karakter kotak Unicode (┌─┬─┐) atau ASCII polos (+, -, |). Mendeteksi pemisah secara otomatis.

Input

Output

Tabel ASCII
 
Apakah ini membantu?

Panduan

What this tool does

The ASCII Box & Table Generator turns plain CSV or tab-separated rows into a neatly aligned text table, bordered with either Unicode box-drawing characters (┌─┬─┐, , ├─┼─┤, └─┴─┘) or plain ASCII (+, -, |). Paste tabular data and get back a table you can drop straight into a code comment, a terminal banner, a README, a chat message, or a plain-text email — anywhere Markdown or HTML tables aren't rendered.

Every column is padded to the width of its widest cell, so columns line up even when values are different lengths. The first row is always treated as the header and gets its own separator line beneath it.

How to use it

  1. Paste your data into Input Data (CSV or TSV) — one row per line, with values separated by commas or tabs.
  2. Choose a Delimiter: leave it on Auto-detect and the tool counts commas versus tabs on the first line to guess, or force Comma or Tab explicitly.
  3. Pick a Border Style: Unicode for crisp box-drawing characters (best in terminals, code editors, and most modern chat apps), or ASCII for maximum compatibility (renders correctly in any font, any plain-text context, and older systems).

The table regenerates automatically as you type or change an option — there's no button to click.

Example

Input:

Name,Age
Alice,30
Bob,7

Unicode output:

┌───────┬─────┐
│ Name  │ Age │
├───────┼─────┤
│ Alice │ 30  │
│ Bob   │ 7   │
└───────┴─────┘

FAQ

What if my rows have different numbers of columns? Short rows are padded with empty cells up to the width of the longest row, so the table still renders as a clean rectangle instead of breaking.

Can I wrap quoted values that contain a comma? Yes — wrap a field in double quotes ("Doe, John",42) and the comma inside it is kept as part of the value rather than treated as a new column. A doubled quote ("") inside a quoted field becomes a literal ".

Why does alignment look off with emoji or CJK text? Column widths are measured in UTF-16 code units. That's accurate for plain Latin/European text, but emoji, combining marks, and "wide" East Asian characters can occupy more visual space than code units, which may shift alignment by a column or two.

Which border style should I use? Unicode box-drawing characters look sharper and are supported almost everywhere text is monospaced (terminals, code blocks, Slack, Discord). Plain ASCII (+, -, |) is the safer choice for legacy systems, plain-text emails, or fonts that don't include box-drawing glyphs.

Does this create HTML or Markdown tables? No — the output is a fixed-width plain-text table meant for monospace display, not a Markdown or HTML table.

Privacy

This tool runs entirely in your browser. Your data is never uploaded to a server.

asciiascii-arttablecsvbox-drawingtext-art

Use it from code

From 3 credits per call

REST API

curl -X POST https://api.iotools.cloud/v1/tool/ascii-box-table-generator \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{
    "inputText": "Name,Age\nAlice,30\nBob,7",
    "delimiter": "auto",
    "borderStyle": "unicode"
  }'

Swap in your own key from your account. The tool's fields are the body — no wrapper.

Ask an AI agent

Use the IOTools `ascii-box-table-generator` tool (ASCII Box & Table Generator) on this input:

YOUR_INPUT_HERE

Paste this at any agent connected to the IOTools MCP server, then add your input.

Suka alat-alatnya? Hilangkan iklannya.

Satu kali pembayaran menghapus semua iklan dari akun Anda, selamanya. Tanpa langganan, tanpa pelacakan.