File Converter
Convert images between JPG, PNG, WebP, and BMP, and format JSON, CSV, and text files. All processing happens locally in your browser.
What this tool actually does
The File Converter handles the everyday conversions a browser can do natively, without uploading anything. For images it decodes your file with the Canvas API and re-encodes it in the target format β JPG, PNG, WebP, or BMP. For data files it transforms the text directly: JSON can be pretty-printed for reading or minified for shipping, CSV can be extracted to plain text, and messy text can be cleaned up. The options you see adapt to the file you drop in, so you're never offered a conversion that can't work.
A worked example: JSON formatting
Drop in a minified JSON file containing {"name":"ToolsForge","tools":10,"free":true} (44 characters) and choose Pretty JSON. The output β produced by the exact code the tool runs β is:
{
"name": "ToolsForge",
"tools": 10,
"free": true
}That's 57 characters with two-space indentation, ideal for reading and code review. Minifying reverses the trade: the same data shrinks back to 44 characters for production use. Because the file is parsed before re-output, invalid JSON is caught and reported instead of silently corrupted.
Text cleanup, shown honestly
The TXT (cleaned) option collapses all runs of whitespace β spaces, tabs, line breaks β into single spaces. For example, " Hello world, thiβ¦" becomes "Hello world, this text has chaotic spacing.". That's exactly what you want for text scraped from a PDF or web page, and exactly what you don't want for poetry β the line structure is gone for good.
Image conversions worth knowing about
PNG β JPG is the classic "make this screenshot smaller" conversion, but remember JPG has no transparency: transparent areas are flattened. JPG β WebP typically saves 20β30% at similar quality and is supported by every modern browser. BMP exists mainly for legacy Windows software that insists on it. Lossy targets (JPG, WebP) are encoded at quality 90, a deliberate high-quality default; if you want to choose the compression level yourself, use the Image Compressor instead.
How to use File Converter
- 1Upload a file from your device.
- 2Choose a target format β the options shown depend on your file's type.
- 3Click Convert and download your result.
- 4All conversion happens locally in your browser.
Frequently Asked Questions
Which formats are supported?
Images: JPG, PNG, WebP, and BMP in any direction. Data: JSON pretty-print/minify, CSV to TXT, and plain-text cleanup or CSV line extraction.
Are files uploaded?
No. Images are converted with the Canvas API and text is transformed with JavaScript, all inside your browser tab.
What about PDFs?
PDFs need dedicated handling, so they have their own tools: PDF Compressor, Image to PDF, and PDF to Image.
Why does my format not appear?
The tool only offers conversions the browser can perform natively and correctly. Formats like HEIC, TIFF, RAW, or DOCX need specialized libraries, and we'd rather not offer a broken conversion.
Does converting to JPG lose quality?
JPG and WebP are lossy formats; this tool encodes them at quality 90, which is visually excellent. Converting between lossy formats repeatedly compounds the loss, so convert from the original when you can.
Limitations & Privacy
- Transparency is lost when converting to JPG or BMP β transparent pixels are flattened. Keep PNG or WebP if you need it.
- HEIC (iPhone), TIFF, RAW, and office formats (DOCX, XLSX) are not supported β browsers cannot decode them natively.
- CSV handling is line-based, not a full parser: quoted fields containing commas are not interpreted.
- Lossy output quality is fixed at 90; use the Image Compressor when you want control over the quality/size trade-off.
- Privacy: files are read and converted in memory on your device; nothing is transmitted or retained.