File Converter
Convert text files to different formats
Click or drop a text file hereChoose a text file
About File Converter
File Converter re-saves a text file in one of four forms, in your browser. TXT decodes the file in its real encoding (byte-order mark, valid UTF-8, or the Windows code page of your browser language) and writes clean UTF-8. JSON wraps the whole text in a single content field. CSV turns tab-separated lines into comma-separated CSV, with values quoted where needed. HTML escapes the text into the pre block of a minimal page. It does not parse the content: CSV rows do not become JSON records, and HTML tags are not removed.
How to convert a text file
- 1Choose a .txt, .csv, .json, .html, or .md file.
- 2Pick the target in "Convert to": "TXT", "JSON", "CSV", or "HTML".
- 3Click "Convert".
- 4Click "Download": the file keeps its name with the new extension.
Formats and limits
- Input formats
- TXT, CSV, JSON, HTML, MD
- Output formats
- TXT (UTF-8), JSON, CSV, HTML
- Encoding
- Detected from the byte-order mark or UTF-8 validity, otherwise the code page of your browser language
- Not done
- No parsing: JSON keys, CSV columns, and HTML tags are not interpreted
- Size limit
- None set; the whole file is read into memory
Where your file is processed
The file is read, decoded, and rewritten by JavaScript on this page; it is not uploaded, and the converted copy is created on your device. When an error is shown, its cleaned text goes to our error log with the tool name and browser version; the file and its name do not.
Frequently asked questions
Can it convert CSV rows into JSON records?
No. The JSON output puts the whole text in one string field called content. For an array with one object per row, use CSV to JSON in Developer Tools.
Can I convert a TSV file to CSV?
Yes. The picker lists only .txt, .csv, .json, .html, and .md files, so rename the .tsv file, or switch the picker to all files where your system offers it. Each tab becomes a comma, and values containing commas, double quotes, or line breaks are put in quotes.
Will accented characters survive?
Yes in most cases. UTF-8, with or without a BOM, and UTF-16 with a BOM are decoded directly; other files are read with the Windows code page of your browser language, so a file saved by Notepad or Excel on such a system decodes correctly. The result is always UTF-8.
Does it remove HTML tags?
No. Converting an HTML file to TXT keeps its tags as plain text, and converting any file to HTML escapes the less-than, greater-than, and ampersand characters so they show as text inside a pre block.