How to Tidy Up Files: Fix a Messy CSV, Format HTML and Read an EPUB as Text
Updated December 2026
Written by the Toolpuffin team. Tools in this guide are tested in the browser.
Some files are awkward to open: a CSV that lands in one column, HTML squeezed onto one line, or an e-book you only want to read as text. This guide covers all three, with the documents that explain why they behave this way. The tools run in your browser.
Why a CSV opens wrong
CSV stands for comma-separated values, and Microsoft says that in a .csv file the comma character typically separates each field of text.
Source: Microsoft Support: Import or export text (.txt or .csv) files
But there is no single formal specification. RFC 4180, which documents the common format, notes that because there is no single specification there are considerable differences among implementations.
Source: IETF: RFC 4180, Common Format and MIME Type for CSV Files
Excel adds its own settings. When it imports text, the separators match those set for your location in the Windows regional settings, and when it opens a .csv file it uses the current default data format settings to interpret each column.
Source: Microsoft Support: Text Import Wizard
Microsoft says you can change the separator character used in .csv files. If you want a semicolon as the default list separator when you save as .csv, it suggests changing the default decimal separator to a comma, which forces Excel to use a semicolon.
Source: Microsoft Support: Import or export text (.txt or .csv) files
Fix a CSV in four steps
- Paste the CSV or open the file. Files over 5 MB are not accepted.
- Choose what to fix: empty rows, repeated header rows, extra spaces and, if you want, duplicate rows.
- Choose the separator for the result. Try a semicolon if Excel put everything in one column.
- Check the report, then copy or download the result.
Rows with too many columns are not repaired. The tool cannot know where the extra values belong, often an unquoted comma inside a text, so it tells you how many rows are affected and you fix them by hand.
If accents look wrong after you open the download in Excel, tick the option to add a UTF-8 marker before you download. It is meant to help Excel read the file as UTF-8.
Microsoft also notes that to force Excel to run the Import Text Wizard, you can change the file name extension from .csv to .txt before you open it.
Source: Microsoft Support: Import or export text (.txt or .csv) files
Format or minify HTML
Formatting adds indentation so you can read the code. Minifying does the opposite. Google describes minification as removing unnecessary data from web resources (HTML, CSS and JavaScript) without changing how the browser processes them, for example code comments and formatting.
Source: Google PageSpeed Insights: Minify Resources (HTML, CSS, and JavaScript)
The web.dev guide to text-based assets says the browser does not need code comments, and that stripping them reduces the total transfer size. It also says minification is best applied as part of your build and deployment process.
Source: web.dev: Optimize the encoding and transfer size of text-based assets
- Paste your HTML into the box.
- Pick 2 spaces, 4 spaces or tabs, then click Format, or click Minify.
- Copy the result.
- Minifying removes comments and extra spaces and line breaks. Text inside script, style, pre and textarea tags is left exactly as written.
- The tool does not check or repair your HTML. A tag that is not closed in the original is still not closed in the result.
- Line breaks and spaces between inline elements can show up as a small gap in some layouts, so look at the result before you publish it.
Read an EPUB as plain text
According to the W3C's overview of EPUB 3, an EPUB file is effectively just a ZIP file with some identifying metadata that lets reading systems recognise and render the publication inside.
Source: W3C: EPUB 3 Overview (2023 note)
The overview adds that the package lists the resources and gives the order in which to present the content documents, which are XHTML and SVG documents. The converter reads the text of each section in that order.
Source: W3C: EPUB 3 Overview (2025 note)
- Choose an .epub file or drop it on the page.
- Check the text.
- Copy it or download it as .txt or .html.
Pictures, fonts, covers and the page layout are not included, only the text. The tool cannot open books protected with DRM and does not remove DRM, so use it for books you own without DRM or that are free to use. It does not make PDFs.
Privacy
All three tools work in your browser and nothing is uploaded. The first time you click Format, the HTML formatter loads the formatter it needs, about 250 KB.