File Converter

A file converter changes structured data from one text format to another. This free tool converts CSV, JSON, XML, HTML tables and plain text into JSON, CSV, XML, YAML, HTML or TXT. Paste content or open a file, the format is detected automatically, and the result updates instantly for copying or download. Everything runs in your browser.

Free, no signup. Runs entirely in your browser; files and text are not uploaded.

How to use the File Converter

  1. Open a file, drop it on the upload area, or paste content into the Input box.
  2. Check the From format (auto-detected) and change it if needed.
  3. Choose the output format in the To list.
  4. Review the converted Output, which updates as you type.
  5. Click Copy, or "Download converted file" to save it.

Features

  • Inputs: CSV/TSV, JSON, XML, HTML tables or text, and plain text lines
  • Outputs: JSON, CSV, XML, YAML, HTML table and plain text
  • RFC 4180 CSV parsing with quoted fields, commas and line breaks inside quotes; comma, semicolon or tab delimiters
  • Correct escaping for CSV, XML and HTML output and quoting for YAML
  • XML attributes kept as "@name" keys; clear error messages for invalid JSON or XML
  • Paste or upload, copy to clipboard and download with the right file extension

Frequently asked questions

How do I convert CSV to JSON?

Paste the CSV or open the file, make sure To is set to JSON, and copy or download the result. The first row becomes the keys and each following row becomes an object.

How are nested JSON objects converted to CSV?

Each object in an array becomes a row and every key found becomes a column. Nested objects or arrays inside a cell are written as JSON text so no data is lost.

Can I convert YAML to JSON?

Not yet. YAML is supported as an output format only. You can convert CSV, JSON, XML, HTML or text into YAML.

Are my files uploaded?

No. Parsing and conversion run in your browser, so the data never leaves your device.

Related tools

  • Excel CSV Converter – Convert Excel XLSX or XLS worksheets to CSV, or CSV files to XLSX.
  • JSON Formatter – Beautify, minify and validate JSON with error line numbers, key sorting and auto-fix
  • Document Converter – Convert the text of PDF, Word (DOCX/DOC) and TXT files between PDF, DOCX and TXT.
  • HTML Formatter – Indent or minify HTML, keep pre/script content safe and flag unclosed tags

Built and reviewed by Naqash Thaheem, Technical Project Manager. Last reviewed 2026-09-24.