export const prerender = true;JPG, PNG, WebP or PDF? A Practical File Guide | URLtoFile

THE EVERYDAY FILE GUIDE

The right format.
A smaller headache.

A filename tells you the format, not whether it is the best choice for the job. Start with where the file is going: a printout, a website, an email, or an upload form.

Choose a format that fits

FormatUseful forKeep in mind
JPGPhotos and everyday sharingLossy; no transparency
PNGGraphics and transparent imagesCan be large for photos
WebPCompressed web imagesCheck the receiving app accepts it
PDFDocuments with fixed pagesScanned text is not automatically searchable

A photo is too large for an upload form

First check whether the form specifies dimensions, file size, or both. A 4000-pixel-wide photograph may have far more pixels than needed for a small profile picture. Resize the image first, then adjust compression if its size is still too high. Check the saved result for visible detail loss.

A transparent image needs to become JPG

JPEG cannot store transparent pixels. URLtoFile fills them with white during conversion. Choose PNG or WebP if you need to keep transparency. Changing to PNG will not restore detail already removed by JPEG compression.

Several scans need to be one document

Use JPG to PDF for photographs or scans. Each image becomes a page, in the order shown. This preserves the image but does not recognize its text. If your documents are already PDFs, merge them instead of converting them to images.

Only a few PDF pages are needed

Extract the relevant pages into one new PDF. For example, entering “1, 3-5” keeps the first page followed by pages three through five. Open the result to confirm it contains what you intended before sharing it.

Copy an Excel table without losing its columns

Open Excel to text, choose your workbook, and select a worksheet. After conversion, “Copy table” places both a formatted table and tab-separated text on your clipboard. A spreadsheet app uses the tabs to separate cells; an editor that supports rich pasting can use the table. “Copy Markdown” is useful for README files and notes. The preview shows 50 rows per page and up to 20 columns, but copying and downloading include the complete selected worksheet.

Choose CSV, Excel, or JSON for data

CSV is a plain-text format for one table. It does not preserve workbook formatting or multiple sheets. Use XLSX when the recipient wants an Excel workbook. CSV imports preserve text values such as postal codes with leading zeroes. JSON export uses arrays of rows, including the header, so duplicate column names are not lost. Review the result before importing it into another application.

What to expect from Word and PDF conversion

PDF text extraction reads existing digital text; it cannot recognize words in a scanned picture. Word and Excel PDF exports prioritize readable text and pagination. Original images, charts, and exact page layouts are not reproduced. Keep your source document when exact formatting matters.

Keep a copy of the original

Repeated lossy conversion can reduce image quality. Keep your original and create a fresh output from it when you need a different size or format. URLtoFile does not overwrite the source you selected.

Find your next tool →