String Utilities Công cụ đã được cập nhật 3 tuần trước

CSV to Markdown Table Converter

Convert comma-, tab- or semicolon-separated data into a GitHub-flavored Markdown table. Choose the delimiter, set the header row, preview and download the result.

The converter runs in your browser and pads short rows. It is for simple tables, not merged cells, complex layouts or data validation.

Luôn miễn phí Dễ sử dụng Kết quả ngay lập tức Riêng tư và an toàn

Sử dụng CSV to Markdown Table Converter

Chuyển đổi bảng CSV sang Markdown

Chuyển đổi dữ liệu ở định dạng CSV, được phân tách bằng dấu tab hoặc dấu chấm phẩy thành một bảng Markdown gọn gàng.

Nhập tệp CSV

Dán dữ liệu được phân tách và chọn các tùy chọn phân tích
Hỗ trợ dấu ngoặc kép. Các tệp CSV có dung lượng rất lớn có thể làm trình duyệt chạy chậm hơn.

Xuất ra định dạng Markdown

Bảng Markdown được tạo tự động

Xem trước

Xem trước bảng dưới dạng hình ảnh sau khi chuyển đổi
Chờ đợi
Chuyển đổi tệp CSV để xem trước bảng tại đây.
Mẹo về CSV
Sử dụng Dấu phẩy Đối với tệp CSV thông thường, Tab để sao chép và dán trong bảng tính, và Dấu chấm phẩy để xuất dữ liệu CSV theo khu vực.
Liên kết công cụ
Đã sao chép vào khay nhớ tạm.
Hãy giúp cải thiện công cụ này

Đọc nội dung

Tìm hiểu cách thức hoạt động của công cụ này và khi nào nên sử dụng nó.

CSV to Markdown Table Converter

What this converter does

This page converts comma-separated, tab-separated or semicolon-separated data into a Markdown table. It reads the rows in your browser, pads short rows to the widest row, escapes pipe characters and writes a Markdown table that you can paste into a README, documentation page or issue. It also shows a preview and lets you download a .md file. It is a converter, not a spreadsheet editor or a data validator.

How to use it

Paste the delimited data into the input editor. Choose the delimiter: comma, tab or semicolon. Leave “First row header” checked if the first row contains column names; turn it off if every row is data. Press convert. The Markdown table appears in the output editor and in the preview. Use copy or download to take the result. The page also shows character, row and line counts.

Header rows and generated names

With the header option on, the first row becomes the table header. With it off, the page generates names such as Column 1, Column 2 and so on. Generated names are predictable but not descriptive. If your data has no header, consider adding one before conversion so the Markdown table is easier for readers to understand. The converter does not infer semantic names from the values.

Delimiters and quoted fields

Comma mode is the default. Tab mode is useful for data copied from a spreadsheet. Semicolon mode helps with locales that use semicolons as the list separator. The parser handles RFC-style quoted fields, including commas inside quotes, for the supported delimiters. It does not expose every CSV dialect option, so unusual escape rules or multi-line cells should be checked in the preview.

Short rows and pipe characters

Rows with fewer cells than the widest row are padded with empty cells so the Markdown table stays rectangular. A literal pipe character inside a cell is escaped so it does not break the table structure. If a cell contains a line break, Markdown table rendering may still be awkward; flatten the text or use an HTML table if multi-line cells are essential. Check the preview rather than assuming the Markdown will render perfectly.

Output and download

The output is a GitHub-flavored Markdown table. The download button saves `csv-markdown-table.md`. The copy buttons let you copy the input or the converted output. There is a live preview so you can see the table before downloading. The page does not upload the file; the conversion happens in the browser. Large inputs can still make the editor slow because the whole string is processed in memory.

Pasting from a spreadsheet

When you copy cells from a spreadsheet, the clipboard usually uses tabs between columns and newlines between rows. Choose the tab delimiter. If the paste includes a trailing empty row or extra tabs, the table may gain an empty column or row. Remove the trailing blank line and check the preview. For a large sheet, export a CSV instead of copying thousands of cells into the browser.

Markdown table limits

Markdown tables are simple: a header row, a separator row and data rows. They do not support merged cells, row spans, column spans or rich formatting inside every renderer. A very wide table is hard to read on a phone. Long cell text can wrap awkwardly. If the data needs complex layout, an HTML table or a linked CSV may be a better choice.

Markdown renderers

GitHub, GitLab, many wikis and static-site generators support pipe tables, but the details can differ. Some renderers require a blank line before the table. Others handle escaped pipes differently. After downloading, preview the Markdown in the system where it will live. A table that looks right in this page can still break in a renderer with stricter parsing.

Numbers, dates and leading zeros

The converter treats values as text. It does not format numbers, change date formats or remove leading zeros. That is usually what you want for identifiers and postal codes, but it means a numeric column will not be aligned or rounded. Check how the receiving Markdown renderer displays the values; some renderers treat certain strings as links or formatting.

Privacy and local processing

The conversion runs in your browser. The CSV is not sent to Newisty. That makes the page convenient for small internal tables, but the data still sits in the page until you clear it or close the tab. Copying the output puts it on your clipboard. Do not paste sensitive data on a shared computer or in a browser profile you do not control.

Accessibility and readability

A Markdown table is read row by row by screen readers, and very wide tables can be difficult to follow. Keep column names short and meaningful. Avoid using color or visual alignment to carry meaning. If the table is large, consider linking to a CSV or splitting it into smaller tables. The converter cannot add captions, summaries or alternative text for you.

Common problems

If the table has one column, check the delimiter. If the header looks wrong, toggle the first-row-header option. If a cell breaks the table, look for an unescaped pipe or a line break. If the preview is slow, reduce the input size. If the download name is unexpected, check your browser's download settings. If the output looks correct but renders poorly, test it in the target Markdown renderer.

What not to do

Do not use the converter to clean or validate data. Do not assume every Markdown renderer supports the same table syntax. Do not paste confidential data on a shared device. Do not use a table for complex merged layouts. Do not expect the tool to preserve formulas, cell colors or spreadsheet formatting; it only reads the text values.

A worked example, step by step

Suppose you paste these three lines with the Comma delimiter selected and "First row header" left on:

name,role,notes
Ana,"Lead, backend",uses a|b flag
Ravi,QA

The converter reads name, role and notes as the header. The quoted value "Lead, backend" stays in one cell because the comma sits inside quotes, and the quotes themselves are removed. The pipe in a|b is written as a\|b so it does not split the column. Ravi's row has only two values, so it receives an empty third cell. The output is:

| name | role | notes |
| --- | --- | --- |
| Ana | Lead, backend | uses a\|b flag |
| Ravi | QA |  |

The input counter shows 3 rows detected and the output counter shows 4 lines, because the separator row is added under the header.

Alignment, spacing and blank lines

Every column in the separator row is written as a plain ---. The converter does not add colons, so it never produces left, centre or right alignment markers. If you want numbers aligned to the right, edit the separator row after copying, for example change --- to ---: for that column.

Spaces at the start and end of each cell are trimmed when the Markdown is written, so Ana becomes Ana. Spaces inside a value are kept. The output is not padded into fixed-width columns, which keeps the file small but means the raw Markdown is not visually lined up in a text editor.

A doubled quote inside a quoted field, such as "say ""hi""", becomes a single literal quote in the cell. A trailing newline at the end of the input is ignored, but a blank line in the middle of the data becomes an empty table row, so remove gaps before converting. The Clear button empties both editors and also resets the delimiter to Comma and turns "First row header" back on.

Frequently Asked Questions

Câu hỏi thường gặp

Các câu trả lời ngắn gọn cho những thắc mắc mà người dùng thường đặt ra trước khi tin tưởng vào kết quả.

Comma, tab and semicolon. Choose the delimiter that matches your data. If the table collapses into one column, the selected delimiter probably does not match the input.

It handles ordinary RFC-style quoted fields for the supported delimiters. Unusual escape rules and multi-line cells may not survive. Check the preview before downloading the Markdown.

Turn off “First row header.” The converter then generates names such as Column 1, Column 2 and so on. Adding a real header before conversion usually makes the table easier to read.

Yes, values are treated as text. The converter does not turn identifiers into numbers or strip leading zeros. The receiving Markdown renderer may still apply its own formatting.

Yes. The download button saves `csv-markdown-table.md`. You can also copy the output or the input. The conversion happens in your browser, not on the server.

A literal pipe or a line break can interfere with Markdown table syntax. The converter escapes pipes, but multi-line cells can still render awkwardly. Flatten the text or use an HTML table for complex content.

The page does not state a hard server limit because the conversion is local. Very large inputs can still make the browser slow because the entire table is held in memory. Split large datasets.

Not in the tool. Every separator cell is written as three dashes with no colons. Add :---, :---: or ---: by hand after copying if a column needs left, centre or right alignment.

A blank line in the middle of the input is read as a row with no values, and the converter pads it to the full width. Delete blank lines between records before you press Convert. A single trailing newline at the end is ignored.

Bình luận (0)

Dành cho các cuộc thảo luận của người dùng, các trường hợp ngoại lệ và các mẹo bổ sung.
Để lại bình luận
Bình luận của bạn sẽ được hiển thị công khai sau khi gửi.
Chưa có bình luận nào. Hãy là người đầu tiên bình luận!
Hãy cho chúng tôi biết!
Báo cáo sự cố liên quan đến công cụ này

Hãy mô tả vấn đề mà bạn gặp phải để chúng tôi có thể tìm hiểu và cải thiện công cụ này.

Điều gì hữu ích nhất
Vui lòng cung cấp thông tin về dữ liệu đầu vào, kết quả mong đợi, kết quả thực tế, trình duyệt/thiết bị và ảnh chụp màn hình (nếu có thể).
Nút chụp màn hình sẽ chụp lại trang web trong trình duyệt và đính kèm hình ảnh được tạo ra vào biểu mẫu này.
Ảnh chụp màn hình toàn trang
Được ghi lại trên trình duyệt của bạn bằng newisty.
Chưa có ảnh chụp màn hình nào được chụp.
Công cụ Báo cáo