freesabai

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

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

  1. Open Excel to CSV / JSON and choose an .xlsx file (an .xlsm with macros is read too: values only, macros are not run).
  2. 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.
  3. Press Save this sheet or Save every sheet as a ZIP.
The Excel to CSV or JSON tool with the sheet October chosen, the option to save as CSV to open in Excel, a delimiter choice, a preview table of sales data, and Save this sheet and Save every sheet as a ZIP buttons
A sample Excel file with 2 sheets. The sheet October is chosen: the table shows 9 rows and 5 columns, 8 date cells will be written as year-month-day, and the save format is CSV for Excel.

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

  1. 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").
  2. 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.
  3. Press Save as Excel (.xlsx).
The CSV to Excel tool with two files listed, cafe-sales.csv and customers.csv, the first-row-is-header option ticked, a preview table of four customers whose phone numbers start with 0 and sit on the left, and a Save as Excel button
Two CSV files added (one sheet each). The preview shows the last one: phone numbers are left-aligned, which means they are kept as text, so the leading 0 stays.

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

  1. Open Word to text / HTML and choose a .docx. A preview of the document appears at once.
  2. Choose plain text (.txt), HTML (one .html file) or Markdown (.md). You can tick headers and footers; pictures are only in the HTML.
  3. Press Save the file.
The Word to text or HTML tool with Markdown chosen as the format, a summary of 21 paragraphs and 1 table, and a preview of a sample price quote with a title, bold text, a table, a bulleted list and a numbered list
A sample price quote (.docx) previewed before saving: a title, bold text, a table, a bulleted list and a numbered list are visible. The format is set to Markdown.

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.

The HTML to Markdown tool: the left box holds the HTML of a promotion page, the right box the Markdown produced with a heading, bold text, a link and a list, and a summary below saying 2 headings, 2 lists, 1 table, 1 link
A sample HTML file chosen from the computer. The right box shows the Markdown, and the summary counts 2 headings, 2 lists, 1 table and 1 link.

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.

The Markdown to HTML tool set to a full web page, meeting-notes Markdown in the left box, the HTML produced in the right box, and a preview below with headings, a nested list, ticked task items, a table and a quote
A sample Markdown file chosen from the computer, set to make a full web page. The HTML comes to 2.7 KB, and the preview below shows how it will look.

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

Which to use

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

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).