File and data converters

A file that will not open, a form that wants another format, a spreadsheet that needs to be JSON: these file converters cover the common jumps between pictures, PDFs and data. Each one runs in this browser tab, so your files stay on your computer.

Tools in this category

Which converter do you need?

Pick from the file you have, because file converters are named by what goes in and what comes out. A phone photo: HEIC to JPG for sharing, HEIC to PNG for editing. Web pictures that will not open: WebP to JPG, WebP to PNG or AVIF to JPG. Plain PNG or JPG: PNG to JPG, JPG to PNG, JPG to WebP or PNG to WebP. Not sure of the target? The image converter handles JPG, PNG, WebP and AVIF. For a logo: SVG to PNG. A picture as text: image to Base64.

A PDF: PDF to JPG or PDF to PNG for pages as pictures, PDF to text for the words, text to PDF for the other way. Data: CSV to JSON, JSON to CSV, YAML and JSON, XML and JSON and CSV and Excel. Writing: Markdown to HTML.

Newer format, bigger file when you go back

Converting is not always a trade down in bytes. Newer formats pack pictures tighter, so moving to an older one grows the file. Our 1280 by 960 test picture was 19,836 bytes as WebP and 71,282 as JPG, 3.6 times bigger. The AVIF version was 19,912 bytes and became 74,380 as JPG, 3.7 times. As PNG, the WebP grew to 306,726 bytes, 15.5 times. A 247,358 byte JPG became 1,442,513 bytes as PNG, 5.8 times.

The other direction saves a lot on photos. That JPG became 42,846 bytes as WebP at quality 85, 17 percent of the original. A 620,844 byte photo PNG became 12,766 bytes. Flat logos can go the other way: a 21,105 byte PNG logo came out at 22,624 as lossy WebP, and the page says so. Each result shows its size, so read it before you save.

Transparency and animation

JPG cannot be see-through. PNG to JPG, WebP to JPG and AVIF to JPG ask for a background colour for transparent areas, and soft edges blend with the colour you pick. A white logo on a white background disappears, so match the page it will sit on. PNG and WebP keep transparency. An animated WebP becomes one still in the JPG tool, with a note that only the first frame was kept.

iPhone photos

Our 520,206 byte HEIC was stored sideways with two rotation instructions. Read once, it made an upright 1280 by 960 JPG of 171,537 bytes, 33 percent of the original. As PNG, the same photo was 1,432,401 bytes, about 2.75 times the HEIC. We made the sample with a library, not an iPhone, so try one real photo first.

PDF pages, text and scans

A PDF page is measured in points, 72 to the inch, and DPI scales it. An A4 page comes out at 1,241 by 1,754 pixels at 150 DPI and 2,481 by 3,508 at 300. That is four times the pixels, and on our text page the file was about 2.6 times larger (464,528 bytes against 180,277). PNG has no quality slider, so a smaller PNG means a lower DPI.

PDF to text reads the text stored in the file. Our 3-page, 1.3 MB scan was refused with a plain message and no file was made, because there is no OCR. If you cannot select a word in your viewer, the page is a picture. Going the other way, a 220-line text file on A4 with Helvetica made 5 pages at 9 pt, 7 at 11 pt and 14 at 14 pt.

Data converters, and what they do with edge cases

Each data page states its rules instead of guessing. CSV to JSON detected comma, semicolon, tab and pipe on our four samples, and kept IDs such as 007 as text. JSON to CSV opens nested objects into dotted columns: our test gave the header id,a.b.c.d,e,f,a.b. XML to JSON writes an attribute as a key with an @_ prefix, and a tag that appears once becomes a string while a repeated tag becomes a list, so code that reads it must handle both. YAML to JSON replaces an alias with a copy, and two documents become a list of two.

CSV to Excel judges each cell on its own. In our test 00501 stayed text while 94105 in the same column became a number, a 17-digit ID stayed text, and =1+1 was written as text, never as a formula. Markdown to HTML strips scripts by default: on our sample the clean option removed a script tag and an onerror attribute. It does not remove style blocks, so do not paste Markdown you do not trust.

Pictures as text

Base64 turns every 3 bytes into 4 characters, so the text is a third bigger than the file. Our 620,844 byte PNG became 827,792 characters, 33.33 percent more. Gzip recovers most of that when your server compresses CSS and HTML. The same page turns Base64 back into a picture.

Limits

The picture converters and the HEIC tools take up to 50 pictures per run, 100 MB each. SVG to PNG takes 50 files of 20 MB. The PDF to picture tools take 200 pages a run and 200 MB a file. CSV, JSON, YAML and XML converters take files up to 10 MB, image to Base64 up to 10 MB, CSV and Excel up to 25 MB, and Markdown up to 2 MB.

Where your files go

Nowhere. Each page reports a request log from a test browser, and none of them had a request carrying your file or text. Some tools download a decoder or a library the first time, such as the HEIC decoder, the image codecs or the CSV, YAML and Excel libraries, from the jsDelivr and cdnjs CDNs. That is a download to your browser, not an upload from it. Most are checked against a fixed hash before they run; the image codecs are not. Otherwise only Google's ad and analytics hosts were contacted.

After the conversion

If the result is still too heavy, shrink it with the image compressor or set exact pixels in the image resizer. Messy JSON? Tidy it in the JSON formatter.

Frequently asked questions

Are my files uploaded anywhere?

No. These file converters run in your browser tab, and each tool page reports a request log with no file sent.

Why did my JPG come out bigger than the WebP?

WebP and AVIF pack pictures tighter than JPG. Our WebP of 19,836 bytes became a 71,282 byte JPG. Lower the quality slider or keep the WebP.

How do I convert an iPhone photo for Windows?

Use HEIC to JPG. It makes a file that opens in any app, and the photo comes out upright.

Can I convert a scanned PDF to text?

No. There is no OCR, so a scan is refused with a message. A PDF made from a document works.

Will leading zeros survive a CSV conversion?

Yes. IDs such as 007 stay text in CSV to JSON, and 00501 stays text in CSV to Excel.

Which format keeps transparency?

PNG and WebP do. JPG does not, so its tools ask for a background colour.

Is there a file count limit?

Pictures: 50 per run. PDF pages: 200 per run. Each page lists its file size limit.

More tool categories