Home › Developer Tools › ASCII Table Generator

ASCII Table Generator

Paste CSV, tab-separated cells from Excel or Google Sheets, or an existing pipe table, and get a neatly aligned plain-text table. Pick MySQL, Markdown, Unicode box, reStructuredText or Org style, wrap it in code comments, and copy it into a README, a commit message or your source code.

Last updated:


  
Advertisement
Advertisement

How to use the ASCII Table Generator

  1. Paste your data into the box: CSV, cells copied from a spreadsheet, or any existing text table. A sample table is loaded so you can see the result first.
  2. Choose a style such as MySQL grid, Markdown or Unicode box. The table updates instantly.
  3. Adjust the layout: header row, alignment, cell padding, lines between rows and a maximum column width for wrapping.
  4. Pick a comment style if the table goes into source code, so every line starts with // or #.
  5. Copy the table or download it as a text file. Paste it where a monospace font is used so the columns line up.

Text table styles compared

All styles use the same column widths: each column is as wide as its longest cell plus the padding. The choice is about where the table will be read.

StyleCharacters usedBest for
MySQL / ASCII grid+ - |Any plain-text place, 7-bit safe: terminals, logs, emails, old systems
Markdown (GitHub)| --- :--: ---: |README files, issues, wikis and docs that render Markdown into HTML tables
Unicode box (single, rounded, heavy, double)┌ ─ ┬ │ ├ ┼ └ and variantsCLI output, code comments and docs where a cleaner look is wanted
reStructuredText grid+ - = | with a = line under the headerSphinx and Python documentation; every row is separated by a line
reStructuredText simple===== ===== rulesSphinx docs with short single-line cells
Org-mode| a | b | and |---+---|Emacs Org files, which can then sort and calculate on the table
Plain columnsspaces and a dashed header underlineReports, CLI help text, notes where borders are noise

Tips for clean plain-text tables

  • Keep it narrow. Many code style guides limit lines to 80 to 120 characters. Set a maximum column width so long descriptions wrap inside their cell instead of stretching the table.
  • Right-align numbers. Digits line up by place value, which makes columns of figures easy to compare. Auto alignment does this for any column whose cells are all numbers, including values like $1,250.00, -3.5 or 42%.
  • Quote CSV cells that contain commas. Write "Smith, Jane" so the comma stays in the cell. Doubled quotes ("") inside quotes become a single quote character.
  • Use a code block in Markdown. Wrap a box-style table in triple backticks so Markdown keeps the spacing and uses a monospace font.
  • Escape pipes in Markdown. A | inside a cell would start a new column, so the Markdown style writes it as \| automatically.

Need a rendered table instead? Use the Markdown Table Generator to edit cells in a grid, or the LaTeX Table Generator for papers.

Frequently asked questions

What is an ASCII table?

An ASCII table is a table drawn with ordinary text characters, for example + and - for borders and | between columns, so it lines up in any monospace font. It is used in terminal output, README files, code comments, emails sent as plain text and documentation where HTML tables are not available. In this sense it is different from the ASCII code chart that lists character codes.

Why do my columns not line up after pasting?

Text tables only align in a monospace (fixed-width) font, where every character has the same width. Paste them into a code block, a terminal, a plain-text editor or Markdown inside triple backticks. In proportional fonts such as most email or word processor defaults the borders drift apart.

Which style should I use for a GitHub README?

Use the Markdown style if you want GitHub to render a real HTML table. Use a MySQL or Unicode box style inside a code block (``` fences) if you want the table to look exactly the same as plain text everywhere.

Do Unicode box-drawing tables work everywhere?

They display well in modern terminals, editors and browsers that use a font with box-drawing characters (U+2500 to U+257F), which nearly all monospace fonts include. Very old consoles or tools that only accept 7-bit ASCII may show question marks; choose the MySQL style for maximum compatibility.

How are Chinese, Japanese and emoji characters handled?

Those characters occupy two columns in a monospace font. With the double-width option on, the generator counts them as two columns when padding, so borders stay aligned in terminals and editors that follow the East Asian Width rules.

Can I convert an existing text table to a different style?

Yes. Paste a MySQL, Unicode box, Org or Markdown table; the border and separator lines are ignored and the cells between the pipes are read, so you can switch it to any other style.

Is my data uploaded?

No. Parsing and formatting happen in JavaScript in your browser, and files you open are read locally. Nothing is sent to a server.

Are all the tools on FreeToolCabin tested for quality and accuracy?

Yes! Every tool on our site undergoes automated Q/A testing in real browser environments to ensure high precision, correct output, and zero errors. If you happen to spot a bug or have a suggestion, please contact us at [email protected] and our team will review it right away.

Related tools

Markdown Table GeneratorBuild Markdown tables in a grid or paste from Excel/CSV, with alignment and preview.Text to Table ConverterTurn tab, comma, pipe or space separated text into a table to copy as rich text, Markdown or plain text.CSV to Markdown TableConvert CSV to a neatly aligned GitHub Markdown table with column alignment and live preview.LaTeX Table GeneratorEdit a table like a spreadsheet or paste from Excel and get LaTeX tabular or booktabs code.QR Code GeneratorMake QR codes for links, Wi-Fi, email and more.Barcode GeneratorCreate Code 128, EAN-13, UPC-A, EAN-8, Code 39 and ITF-14 barcodes as PNG or SVG.UUID GeneratorGenerate UUID v4 and v7 / GUIDs in bulk and copy or download them.Schema Markup Generator (JSON-LD)Create JSON-LD structured data for FAQ, Product, Article and more.Htaccess & Nginx Redirect GeneratorBuild 301 redirects for .htaccess, Nginx and Netlify or Cloudflare _redirects.Fake Data GeneratorGenerate mock data as JSON, CSV or SQL.Random String GeneratorGenerate secure random strings and tokens in bulk with any length and character set.API Key GeneratorCreate secure API keys and secrets with prefixes, checksums and SHA-256 hashes for storage.MIME Type LookupFind the MIME type for any file extension, or the extensions for a MIME type, in 400+ entries.Cron Expression GeneratorBuild crontab schedules visually, read them in plain English and see the next run times.URL Slug GeneratorTurn titles into clean, SEO-friendly URL slugs: accents, stop words, separators and bulk lines.JSON Schema GeneratorTurn sample JSON into a draft 2020-12 JSON Schema with types, required fields and formats.Gitignore GeneratorBuild a .gitignore from 50+ templates for languages, frameworks, IDEs and OS, merged and deduped.License GeneratorCreate a LICENSE file for MIT, Apache, GPL, BSD, ISC, MPL or Unlicense with your name and year.ULID GeneratorGenerate sortable ULIDs and UUID v7 in bulk, monotonic option, and decode their timestamps.Htpasswd GeneratorCreate .htpasswd entries with bcrypt, APR1-MD5 or SHA-1 for Apache and Nginx basic auth.Placeholder Image GeneratorCreate placeholder images in any size, color and text as PNG, JPG, WebP, SVG or data URI.Ads.txt GeneratorCreate or validate ads.txt and app-ads.txt files: seller lines, cert IDs and variables.Docker Run to Compose ConverterConvert docker run commands to docker-compose.yml, or a compose file back to docker run.Dockerfile GeneratorGenerate a production Dockerfile and .dockerignore for Node, Python, Go or a static nginx site.HTML Boilerplate GeneratorTick the options you need and get a clean HTML5 starter template with meta, OG tags and CSS reset.JSON to Zod SchemaInfer a Zod (or Yup) schema from sample JSON with optional, nullable and z.infer types.Linux Commands Cheat SheetSearchable Linux and bash command reference with flags explained, examples and copy buttons.LLMs.txt GeneratorBuild an llms.txt file for AI crawlers: summary and link sections, import from your sitemap.Nano ID GeneratorGenerate secure Nano IDs with custom alphabet, length and count, plus a collision calculator.Nginx Config GeneratorBuild an nginx server block: static site, SPA, reverse proxy or PHP, with SSL, gzip and redirects.OpenAPI / Swagger ViewerView OpenAPI 2/3 JSON or YAML as interactive API docs with validation and an endpoint list.package.json GeneratorFill a form and get a valid, npm-ready package.json with scripts, dependencies and checks.PKCE Code Challenge GeneratorGenerate an OAuth 2.0 PKCE code_verifier and S256 code_challenge, build auth URLs, verify pairs.README GeneratorFill in a form and get a polished README.md with badges, install, usage and license, live preview.Regex GeneratorBuild regular expressions visually from blocks or presets (email, date, phone) and test them live.Commit Message GeneratorBuild Conventional Commit messages with type, scope, body, breaking change and issue refs.Database Schema DesignerDesign tables and relationships visually, then export SQL for MySQL, PostgreSQL or SQLite.Docker Compose GeneratorBuild a docker-compose.yml with a form: services, ports, volumes, env, healthchecks and presets.Kubernetes YAML ValidatorValidate Kubernetes manifests against the API schema of a chosen version, with error paths.Prettier Config GeneratorToggle Prettier options, preview formatted code live and copy your .prettierrc file.Quartz Cron GeneratorBuild and explain Quartz and Spring cron expressions with seconds, ?, L, W and #, plus next fire times.README Badge GeneratorCreate Shields.io-style README badges for license, version, build and custom labels.Systemd Service File GeneratorCreate a systemd .service unit with ExecStart, user, restart policy, environment and hardening.tsconfig.json GeneratorBuild a tsconfig.json with target, module, strict checks and path aliases, each option explained.Access Log AnalyzerAnalyze Apache and Nginx access logs: top URLs, IPs, status codes, bots and traffic charts.Regex String GeneratorGenerate random test strings that match any regular expression, checked against the real regex.Dummy File GeneratorCreate test files of an exact size in KB, MB or GB with zeros, random bytes or text.FFmpeg Command GeneratorPick a task and options, get the exact ffmpeg command with every flag explained.Folder Tree GeneratorTurn a local folder or an indented list into an ASCII directory tree for your README.GitHub Actions Workflow GeneratorBuild a GitHub Actions CI workflow: triggers, matrix, caching, tests, Pages or Docker deploy.Kubernetes YAML GeneratorGenerate Deployment, Service, Ingress, ConfigMap, Secret and HPA manifests with safe defaults.Markdown TOC GeneratorGenerate a linked table of contents from Markdown headings with GitHub-style anchors.OpenAPI EditorEdit OpenAPI/Swagger YAML or JSON side by side with live API docs, validation and download.OpenAPI ValidatorValidate OpenAPI 3.0/3.1 and Swagger 2.0 specs: schema errors, broken $refs, line numbers.Pivot Table MakerBuild pivot tables from CSV or Excel by drag and drop: sum, count, average, charts, export.SQL Query BuilderBuild SELECT queries visually: joins, filters, GROUP BY, ORDER BY and LIMIT, as clean SQL.Truth Table GeneratorType a logic expression and get its full truth table, minterms and canonical DNF/CNF.TypeScript PlaygroundWrite TypeScript with live type checking, see the compiled JavaScript and run it in your browser.Article Schema GeneratorCreate Article, BlogPosting or NewsArticle JSON-LD with headline, authors, dates and images.Event Schema GeneratorCreate Event JSON-LD with dates, venue or online location, tickets, organizer and performers.Google Search Query BuilderBuild advanced Google searches with site:, filetype:, intitle:, exact phrases and date operators.HowTo Schema GeneratorCreate HowTo JSON-LD with steps, tools, supplies, total time and cost, then copy it.Htaccess GeneratorBuild an Apache .htaccess file: HTTPS, www, gzip, caching, error pages, IP blocks, hotlinks.HTML Email Template BuilderDrag and drop blocks to build a responsive, table-based HTML email with inline styles.Organization Schema GeneratorCreate Organization JSON-LD with logo, URL, contact points, address and social profiles.PIN GeneratorGenerate random 4, 6 or 8-digit PINs that avoid sequences, repeats, dates and common PINs.Product Schema GeneratorBuild Product JSON-LD with price, availability, brand, GTIN, ratings and reviews.Question Keyword GeneratorFind the questions people ask about a topic, grouped by who, what, why, how, can and more.
See all 85 Code Generators & Builders →