Table to Markdown makes it easy to convert cells from Microsoft Excel, Google Sheet, LibreOffice Calc, or any modern spreadsheet application, into Markdown.
How it works
Need to convert from Excel to Markdown? When copying cells from Excel and other spreadsheet applications, this data is stored in your clipboard as text and as an HTML table. This is how you can copy cells from Microsoft Excel, paste them into Microsoft Word, and still see the cells as a table.
Table to Markdown uses this HTML version of your spreadsheet cells, too. And with just a few steps, you can turn those cells into well-formatted Markdown:
1. Select the cells you’d like to convert to Markdown
2. Copy those cells to your clipboard
You can right-click and select «Copy» or type Ctrl+C for Windows or Command+C for macOS.
3. Paste the cells in the Table to Markdown paste area
You can right-click and select «Paste» or type Ctrl+V for Windows or Command+V for macOS.
4. Click the «Convert» button
Once you click «Convert», you’ll see a happy Markdown table waiting for you:
| Format | Grooviness |
| -------- | ---------- |
| HTML | Medium |
| Markdown | High |
It’s as easy as that!
Alternatives
There are other ways to convert spreadsheets to Markdown, too.
TableConvert
TableConvert is an online application that can convert tables from a number of formats. It also features a WYSIWYG table editor, which is convenient for composing or editing a table.
exceltk
Excel toolkit, or exceltk, is a command-line program for Windows, macOS, and Linux that can convert an Excel file into a number of formats, including Markdown.
Skip to content
Copy a table from Excel or Google Sheets and paste it into the text box below to create a Markdown table. This online tool is made possible by Jonathan Hoyt’s innovative copy-excel-paste-markdown code. I’ve also modified his code to create a version that supports column alignments as explained below. Here are the steps:
- In Excel or Google Sheets, select a range of cells and press Ctrl+C to copy.
- Paste (Ctrl+V) into the text box below to create a Markdown table.
Additional Notes
- If your table is wide, the resulting text in the text box will appear to be wrapped and misaligned; however, everything will align properly when you copy it from the text box and paste it into your Markdown editor/text editor.
- I have written an article on using Markdown with Visual Studio Code if you are looking for a good Markdown editor.
Column Alignments
You can optionally specify column alignment information by prepending one of the following to the column heading names in Excel:
- ^c – center alignment
- ^r – right alignment
- ^l – left alignment (the default)
For example: enter the following in Excel to right-align the second column and center-align the third column:
animal | ^rweight | ^ccolor |
---|---|---|
dog | 30lb | tan |
dog | 85lb | black |
cat | 18lb | calico |
This will produce the following markdown table when pasted:
| animal | weight | color |
|--------|-------:|:------:|
| dog | 30lb | tan |
| dog | 85lb | black |
| cat | 18lb | calico |
Enjoy!
Additional articles
Build an Amazing Markdown Editor Using Visual Studio Code and Pandoc
Guide to Installing Node.js on a Raspberry Pi
Debian apt Command Cheat Sheet
Consuming JSON Web Data Using Google Sheets
Follow @thisDaveJ (Dave Johnson) on Twitter to stay up to date with the latest tutorials and tech articles.
This VSCode extension converts Excel data to Markdown table format. Available through command Excel to Markdown table
and keyboard shortcut Shift+Alt+V
.
Optionally align columns by prepending the headers with ^[lcr]
for left, center and right alignment. E.g ^lHeader
for left aligning the columns named Header.
Based on https://github.com/thisdavej/copy-excel-paste-markdown and the work of @jonmagic and @thisdavej
Contributors
- @deshorsley for bug fix and test coverage!
- @tylerhaigh for refactoring and test coverage!
- @usagi for new line handling and refactoring!
- @trackds for migrating to internal VSCode clipboard API
Known Issues
- None
Записки под рукой
Когда родители трудятся, а дети наслаждаются жизнью — внуки будут просить милостыню
- Скопируйте (Ctrl+C) содержимое таблицы из Excel
- Вставьте (Ctrl+V) скопированное в поле
- Получите содержимое в формате Markdown (.md)
Ответить
Обязательные поля помечены *
Имя*
E-mail (Используется только для уведомлений об ответах. Не доступен посторонним)
*
Сайт (Необязательно)
This is a quick tutorial to demonstrate how to copy excel to markdown. Here I will list two different methods to do it easily. In the following tutorial, I have added an offline web application and an Excel addin to do the same. Using both of them, you can copy an Excel sheet to markdown format directly. After getting the markdown text equivalent to an Excel table, you can use that in your documents or do whatever you want. If you are using an WYSIWYG markdown editor, then you just have to paste the markdown version of the Excel table and you will see the output.
There may be many reasons that you want the markdown version of any Excel table or any specific range of an Excel table. In that case, you can take help of the tools that I have listed here. You just have to copy the Excel sheet and then use any of these tools to get the corresponding markdown version. You can use both of the tools to copy Excel sheet to markdown very easily and it hardly takes a fraction of a second to do that.
Copy Excel to Markdown table using an Excel Addin:
Copy to Markdown Add-In is a very simple and powerful tool to easily copy any Excel sheet which is opened in it to markdown. And you can even select a specific range to instantly convert that to markdown. This addin adds a separate option in the right-click menu of the Excel Sheets viewer to convert the copied Excel table to markdown. Just after selecting the desired range from an Excel table, you just have to invoke it once to quickly transform the Excel table on clipboard to markdown.
These steps will help you understand how to install and use this addin.
Step 1: Get the ZIP archive of the addin from here. After that, you need to install “Visual Studio 2010 Tools for Office Runtime”. You can get that from here.
Step 2: Run the “Copy to Markdown AddIn.vsto” file by double clicking on it and the click on “Install”. After successful installation, you can open Excel and load the sheet that you want to copy to markdown.
Step 3: Now, either select the entire Excel sheet or just select a specific range that you want to copy to markdown. Next, right-click on the range and then select “Copy to Markdown” option. The markdown version of the selected Excel rage will be copied to the clipboard. You can then paste the data in any markdown viewer and see the output.
That is how this addin for Excel works to copy Excel sheet to markdown tables. And the best part is that you can do that within the Excel window.
Copy Excel to Markdown table using an Offline Webapp:
Above I mentioned an Excel addin to copy Excel to markdown. And here I will talk about an offline web application which can do that in your browser. You have to open it and paste the Excel sheet in that. As you copy the selected Excel data and paste that on the interface of the this web app, it will convert that to markdown. Later on, you can copy that and use that anywhere you want.
You can download the repository from here. After that, extract it and open “index.html” file in any browser. Next, copy the Excel sheet or a range and then paste it in the textbox of the webapp. You will see that it will convert the sheet data to markdown. Later, you can copy that and use it wherever you want.
Final Words
These are the best tools to easily copy Excel to Markdown. As per your convenience, you can use any tool and easily get the markdown equivalent to an Excel table. And these tools make it very easy to do that. Just select the Excel sheet data and copy it to markdown format easily.