Article · Free · Files · Excel, Word, data
Convert Excel to CSV, Word to text, and HTML to Markdown
Your data is in an Excel file but the program that needs it wants CSV or JSON, or the other way round. Or you have a CSV from a back-office system and want an .xlsx where phone numbers keep their leading 0, or a Word document whose text should go on a web page or into Markdown. This article takes each conversion in turn with our free tools, which run entirely in your browser: nothing to install and files stay on your device.
What you can do, and which tool
- An Excel file to CSV or JSON: Excel to CSV / JSON
- CSV or JSON to an Excel (.xlsx) file: CSV / JSON to Excel
- A Word (.docx) file to text, HTML or Markdown: Word to text / HTML
- HTML, or content copied from Word, Google Docs or a web page, to Markdown: HTML / Word / Google Docs to Markdown
- Markdown to HTML: Markdown to HTML
If the problem is a Thai CSV that shows as garbage in Excel, you may not need an .xlsx at all: use Thai CSV that opens right in Excel and read the cause in the article on garbled Thai text.
Excel to CSV or JSON
- Open Excel to CSV / JSON and choose an .xlsx file (an .xlsm with macros is read too: values only, macros are not run).
- Choose the sheet and check the preview table (the first 100 rows), then choose the format: CSV to open in Excel (UTF-8 with BOM, keeps Thai intact), CSV for Google Sheets (no BOM), JSON list of objects (the first row gives the field names), or JSON list of rows.
- Press Save this sheet or Save every sheet as a ZIP.
With the sample file we tried, the CSV came out named monthly-sales-October.csv (the file name followed by the sheet name), started with a BOM, and was readable. The JSON-of-objects option used the first row as field names and kept numbers as numbers, not text.
What happens to the data: formulas are not recalculated; the tool uses the value Excel last saved (if the file came from a program that does not save formula values, the cell is empty, so open it in Excel and save again first). You get values only: fonts, colours, pictures and charts do not come along. Numbers come out as their real value, so 15% becomes 0.15, and dates come out as YYYY-MM-DD whatever the file displays. A merged cell keeps its value only in the first cell.
CSV or JSON to an Excel (.xlsx) file
- Open CSV / JSON to Excel and choose or drop .csv, .tsv, .txt or .json files. Several files are fine: each becomes one sheet, named after the file (or paste text and press "Use the pasted text").
- Check the preview table. Cells aligned to the right will be numbers in Excel and the rest text. To have no numbers at all, tick "keep every cell as text", and choose the CSV delimiter yourself if the guess is wrong.
- Press Save as Excel (.xlsx).
The tool turns a value into a number only when that is safe. Text that starts with 0 (phone numbers, postcodes, account numbers), numbers of 13 or more digits (ID card numbers, say), and values with a + sign, an e, or commas as thousands separators stay as text. Text that starts with = + - or @ is also kept as text, so it never becomes a formula. In the sample we tried, reading the finished .xlsx back showed the phone numbers as text starting with 0 and quantities and prices as numbers. With several files the result we got was named sheets.xlsx. If a Thai CSV shows garbled, see the article on garbled Thai text.
JSON must be an array of objects (all keys together become the header row) or an array of arrays. The file holds data only, a bold header row and approximate column widths: no colours, formulas or other formatting. Dates stay as the text written in the file.
Word to text, HTML or Markdown
- Open Word to text / HTML and choose a .docx. A preview of the document appears at once.
- Choose plain text (.txt), HTML (one .html file) or Markdown (.md). You can tick headers and footers; pictures are only in the HTML.
- Press Save the file.
The Markdown file for the sample document looks like this (the middle is cut):
# Price quote (sample)
# Goods and services
Dear Alice Example, we offer the following. Prices exclude VAT, and the quote is **valid for 30 days**.
| Item | Qty | Price |
| --- | --- | --- |
| Coffee machine | 1 | 420.00 |
...
## Terms
- 50% deposit before delivery
...
One thing we noticed in the sample: both Word's Title and its Heading 1 became #, so if you want them to differ, edit the Markdown. The tool keeps content and structure (headings, bold, italics, lists, tables, links, pictures and footnotes), but fonts, colours, font sizes and page layout do not come along.
HTML to Markdown, and Markdown to HTML
To get Markdown from a web page, a Word document or Google Docs, you do not need to save a file first. Copy the content and paste it into the left box of HTML / Word / Google Docs to Markdown (press Ctrl+V in the box and the tool takes the HTML with its formatting), or paste HTML code, or choose an .html file. Markdown appears in the right box straight away. Choose the heading and bullet style you prefer, then copy or download .md.
For the other way, use Markdown to HTML: paste Markdown or choose a .md file, then choose either a full web page (one .html file you can double-click to read) or just the content to paste into a site or another system, then copy or download .html.
Both directions handle GitHub-style Markdown (GFM). To convert a whole Word document, the Word step above is the more direct route.
Limits of our tools
- Excel: only .xlsx and .xlsm. Old .xls, .xlsb and .ods are not supported: open them in a program and save as .xlsx first. Password-protected files cannot be opened. Files up to 200 MB, and a very large sheet reads slowly and uses a lot of memory, especially on a phone.
- Excel to CSV/JSON: formulas are not recalculated, values only, and no number formats (percent, currency) except dates.
- CSV to Excel: the result has no colours or formulas, and dates stay as the text in the file. Excel takes at most 1,048,576 rows, 16,384 columns and 32,767 characters per cell; anything over is cut and the tool says so. Each file up to 100 MB.
- Word: .docx only (open an old .doc, .odt, .rtf or .pages in its own program and save as .docx first). Password-protected files cannot be opened. Fonts, colours, layout and comments are not kept. EMF/WMF pictures the browser cannot show are skipped, pictures are only in HTML, and files go up to 100 MB.
- HTML to Markdown: colours, fonts, font sizes, underline and layout do not exist in Markdown, so they are dropped. A table with merged cells gets empty cells instead, and a table inside a table becomes text. Pictures embedded in the page (data URIs) are removed and counted. Pictures from Word often point to temporary files on the computer, so add them yourself afterwards. HTML files up to 20 MB.
- Markdown to HTML: HTML typed inside Markdown shows as text and does not become real tags. Links work only for http, https, mailto and relative addresses, and pictures only from http/https. There is no table of contents, footnotes or maths. Files up to 10 MB.
- We checked the results on the tool pages and in the saved files. We have not opened the .xlsx files in every spreadsheet program. For an important document, open the result and check it before you use it.
Which to use
- Pass data from Excel to a program or a website: Excel to CSV / JSON
- Combine CSV or JSON into one multi-sheet Excel file: CSV / JSON to Excel
- Take the text of a Word document to a web page or keep writing it: Word to text / HTML
- Turn content from a web page or Google Docs into Markdown: HTML to Markdown
- Write Markdown and want a web page: Markdown to HTML
All the file converters
Every file converter on this site is free, needs no sign-up and runs in your browser, so your files are not sent anywhere. See them all on the file converters page, which also has two tools for people who publish books on Amazon KDP: the interior PDF maker and the cover size calculator.
More file converter articles
- Thai text garbled in a file: fix TXT, CSV, SRT and ZIP
- Create a password protected ZIP, open ZIP and tar.gz files, and lock a file with a password
- Video to image: save one frame, many frames, or a short GIF
- Convert audio to MP3 or WAV, and extract the audio from a video
- Move contacts and a calendar into a spreadsheet, and convert JSON and XML
Problems and ideas
A tool does not behave the way this says, or there is one you wish we had? Tell us on the feedback page. No sign-up needed.
Written on 2 December 2026. Every picture was taken from the real tools on this site, with sample files whose names and figures are invented. Product names of other companies are trademarks of their owners; freesabai is not affiliated with them.
Questions and answers
Will a phone number that starts with 0 lose the 0 when I convert a CSV to Excel?
This tool keeps text that starts with 0 (phone numbers, postcodes, account numbers) and numbers of 13 or more digits as text, not as numbers, so the leading 0 stays and nothing turns into something like 8.12E+09. If you want no numbers at all, tick "keep every cell as text".
Are Excel formulas calculated when I convert to CSV?
They are not recalculated. The tool uses the value Excel last calculated and saved. If the file came from a program that does not save formula values, that cell is empty, so open the file in Excel and save it again before converting.
What do I lose when I convert Word to Markdown?
You keep content and structure such as headings, bold, lists, tables and links, but fonts, colours, font sizes, page layout and comments do not come along. Pictures are not in the Markdown file (they are only in HTML).