# File Converter

> Convert and compress images, audio, video, data and documents in your browser: HEIC to JPG, MOV to MP4, WAV to MP3, CSV to Excel. Batches of up to 50 files.

- Open the tool: https://overtooled.com/file-converter
- Category: Utilities
- Privacy: Runs entirely in your browser. Nothing is uploaded, no account is needed, and it works offline once loaded.
- Price: free, no sign-up
- Keywords: convert, file, format, image, audio, video, json, csv, xml, yaml, toml, ini, tsv, sql, markdown, html, png, jpg, jpeg, webp, bmp, svg, mp3, wav, flac, ogg, aac, opus, m4a, aiff, mp4, webm, mov, mkv, ts, gif, data, transform, export, h264, h265, hevc, vp9, av1

## In short

Convert files between formats in your browser -- images, audio, video, and data files.

## Overview

Converts images, audio, video, structured data, markup and office documents to other formats in the browser, one file or a batch of up to 50 at a time. It detects each file's type, offers only the output formats that work for it, and can also shrink files with a "Recommended" or "Target size" mode. Use it when you need a different format (HEIC to JPEG, MOV to MP4, CSV to Excel, DOCX to PDF, PDF to images) or a file small enough to share.

## Features

- Images: reads PNG, JPEG, WebP, GIF, BMP, SVG, JXL, HEIC, HEIF and TIFF; writes PNG, JPEG, WebP, BMP, JXL or PDF (GIF, SVG, HEIC and TIFF are input only)
- Image decoding: HEIC/HEIF and TIFF try the browser first, then heic2any (WASM) or utif2; JXL via @jsquash/jxl; EXIF orientation is applied; multi-page TIFFs convert the first page only (with a warning)
- Lossless JPEG <-> JXL: JPEG to JXL is transcoded at the DCT level and JXL to JPEG reconstructs the original JPEG, without a pixel re-encode (skipped in "Minimal size" mode)
- Audio: reads WAV, MP3, FLAC, OGG Vorbis, AAC, M4A, Opus and AIFF; writes WAV, MP3, FLAC, AAC, M4A, Opus or AIFF (OGG Vorbis is input only); re-encoding to the same format is allowed
- Audio engines: small files decode with the Web Audio API and encode WAV/AIFF/MP3 in a Web Worker and Opus with WebCodecs AudioEncoder; large Opus jobs stream through Mediabunny; FLAC, AAC, M4A, large files and anything the browser cannot decode go through FFmpeg.wasm, which is also the automatic fallback
- Video: reads MP4, M4V, WebM, MOV, AVI, MKV and MPEG-TS; writes MP4, WebM, MOV, MKV, MPEG-TS or animated GIF (AVI is input only); same-format re-encode is allowed
- Video engines: Mediabunny + WebCodecs (tries hardware, then software encoding), then FFmpeg.wasm (parallel segment encoding in up to 6 workers when worthwhile, else single-threaded); if FFmpeg also fails but WebCodecs could do the picture, the video is delivered without audio and says so
- Video codecs: H.264 by default, VP9 for WebM; audio is Opus in WebM and AAC elsewhere
- Video to GIF: frames are captured from a <video> element and quantized + LZW-compressed in parallel Web Workers, each frame with its own 256-colour median-cut palette (no dithering on this path yet); FFmpeg two-pass palettegen/paletteuse is the fallback
- Data: JSON, CSV, TSV, XML, YAML, TOML, INI and Excel (XLSX) convert to each other, plus SQL INSERT statements (output only), plain text (pretty JSON) and PDF tables
- CSV input delimiter is auto-detected (comma, semicolon, tab, pipe); text that is not valid UTF-8 is read as Windows-1252; UTF-16 files with a BOM are supported
- Markup: Markdown -> HTML (full document, raw HTML sanitized with DOMPurify), Markdown -> plain text, HTML -> Markdown, HTML -> plain text, and Markdown/HTML/plain text -> PDF
- Documents to PDF: DOCX (mammoth), PPTX and ODP (one landscape page per slide with its text, tables and pictures), ODT, ODS (table), RTF (text only)
- PDF out: PDF -> PNG/JPEG/WebP/BMP/JXL (one image per page, rendered at 2x with pdf.js) or PDF -> plain text (selectable text only)
- Anything -> PDF options: page size (A4, Letter, Legal), orientation, margin (none, 5, 10, 20 mm); tables use jsPDF + autotable as real text, while HTML/Markdown/DOCX/ODT/RTF/slides are rendered to images with html2canvas
- HTML and documents are sanitized before rendering: scripts, forms, iframes and all remote images, fonts and stylesheets are stripped and reported, never fetched
- Size modes for JPEG, WebP, JXL, MP3, AAC, M4A, Opus and video outputs: Recommended ("Keep quality" or "Minimal size"), Target size (max size per file, typed in KB or MB) or Custom (quality slider, bitrate or CRF)
- Same-format compression: JPEG, WebP and JXL can be re-encoded to themselves (the pill is marked "Compress"), like audio and video; PNG, BMP and GIF cannot. Same-format results are named name-compressed.ext
- "Minimal size" caps images at 2048 px on the long edge and video at 720p and 30 fps; profiles never upscale and never exceed a lossy source's bitrate; if a same-format result is not smaller (Recommended, or Custom for images), the original is returned
- Target size is byte-accurate from 20 KB (images up to 50 MB, audio/video up to 4096 MB) and planned in decimal bytes: "200 KB" means at most 200,000 bytes and "19 MB" at most 19,000,000, so a result passes upload forms that count either way. Quick picks: images 100 KB, 200 KB, 500 KB (default), 1 MB, 2 MB; audio 5 MB (default), Discord 19 MB, Email 24 MB; video Discord 19 MB (default), Email 24 MB, Small 8 MB. A same-format file already under the limit is kept as is
- Target size for images: one decode, then the highest quality (30-95) that fits; if even quality 30 is too big, the image is resized (aiming for about quality 70 at the smaller size, down to 320 px on the long edge) and the result notes "Resized to WxH to fit 200 KB"; an unreachable target fails with the smallest size reached and what to try
- Target size for audio/video plans bitrate and resolution to fit the limit, retries up to 3 times, and fails with a message rather than return a file over the limit
- PNG or BMP output shows why there is no size option (lossless / uncompressed) with one-tap "Switch to WebP" (keeps transparency) and "Switch to JPG" (transparent areas become white) buttons; the format never changes on its own
- Video options: max resolution (Original, 4K, 1440p, 1080p, 720p, 480p, 360p), encoding speed preset (used by the FFmpeg encoder), keep or remove audio
- Batch: one kind of file at a time (all images, all audio, etc.); an output is offered when every file can be converted to it or already is that format. In a mixed batch (say PNG + JPG -> PNG) files already in the target format are kept as is and listed under "Kept as is"; JPG, WebP and JXL files going to their own format are compressed under the size settings instead. A single PNG or BMP (or a batch of only PNGs) is not offered its own format, since there is nothing to change
- Every output is checked against the requested format's file signature; a browser that silently produces the wrong format gets an error instead of a mislabeled file
- Progress shows the current file, percent, bytes processed, throughput, ETA and whether GPU/WebCodecs or FFmpeg is in use; conversions can be cancelled
- Per-file warnings (scaled down, hidden sheets skipped, first page only, etc.) and per-file failures are listed after the run without stopping the rest of the batch
- Can receive a file handed over from other tools (for example the File Viewer) without re-picking it

## How to use it

1. Drop files on the box or tap to choose them (up to 50, all of the same kind).
2. Check the detected type, then pick an output under "Convert to".
3. Adjust the options if needed: Size mode, quality or bitrate, resolution, page size, delimiter and so on.
4. Press Convert and wait for the progress bar; use Cancel to stop.
5. Download each result, use "Download All (ZIP)" for everything at once, or on iPhone save images and videos to Photos.
6. Tap Change to tweak settings and convert again, or "Convert more files" to start over.

## Inputs

- Images: .png, .jpg/.jpeg/.jpe/.jfif, .webp, .gif, .bmp/.dib, .svg, .jxl, .heic, .heif/.hif, .tiff/.tif
- Audio: .wav/.wave, .mp3, .flac, .ogg/.oga (Vorbis), .aac/.adts, .m4a/.m4b, .opus, .aiff/.aif/.aifc
- Video: .mp4/.m4v, .webm, .mov/.qt, .avi, .mkv, .ts/.mts/.m2ts (a .ts file without MPEG-TS sync bytes is treated as plain text)
- Data: .json/.geojson/.webmanifest, .csv, .tsv/.tab, .xml, .yaml/.yml, .toml, .ini/.cfg/.conf/.properties, .xlsx
- Markup: .md/.markdown/.mdown/.mkd, .html/.htm/.xhtml, .txt/.text/.log
- Documents: .pdf, .docx, .pptx, .odt, .odp, .ods, .rtf
- Only files with one of the extensions or MIME types above are accepted by the picker and drop zone; anything else (including files with no extension, AVIF, WMA, legacy .doc/.ppt/.xls and .sql) is refused with "file type not accepted"
- Accepted files are identified by extension first; the header bytes can refine it within the same kind (a HEIC photo named .jpg is read as HEIC, a PNG named .jpg as PNG)
- Empty (0-byte) files are rejected with "This file is empty" before converting
- Up to 50 files per batch; no per-file size limit is set by the tool

## Outputs

- Images: PNG, JPEG, WebP, BMP, JXL, PDF (JPEG quality default 92, WebP 80, JXL 75 in Custom mode)
- Audio: WAV or AIFF (16-bit, 24-bit or 32-bit float), MP3 (128-320 kbps), FLAC (compression 0-8), AAC and M4A (128-320 kbps), Opus (64-256 kbps)
- Same-format outputs are named name-compressed.ext (name-converted.ext for lossless audio like WAV to WAV); a kept original keeps its own name
- Video: MP4, WebM, MOV, MKV, MPEG-TS (CRF slider in Custom mode), animated GIF (5-30 fps, default 10; max height Original/720/480/360/240, default 480)
- Data: JSON (indent 0-8), CSV (comma, semicolon or pipe), TSV, XML (indent 0-8), YAML, TOML, INI, SQL (table name; INSERT only or CREATE + INSERT), Excel XLSX (sheet name), plain text, PDF
- Markup: HTML, Markdown, plain text, PDF
- PDF to images gives one file per page named name_page01.png and so on
- Each result shows its size and the change versus the original; image, video and other previewable results show a preview
- Single result: one download button; several results: per-file downloads plus "Download All (ZIP)" (processed-files.zip); on iPhone/iPad, when every result is Photos-compatible (JPEG, PNG, GIF, MP4, MOV) the main button is "Save to Photos" via the share sheet, with download as the alternative

## Limits and notes

- Files are processed in the browser and are not uploaded
- Network: the first FFmpeg-based job downloads the FFmpeg core (JS + WASM, about 31 MB) from cdn.jsdelivr.net (@ffmpeg/core 0.12.9); it is then served from the browser cache. FFmpeg is needed for FLAC, AAC and M4A output, large audio files, video when WebCodecs is missing or fails, AVI input, and the GIF fallback
- All other libraries (Mediabunny, pdf.js, jsPDF, html2canvas, mammoth, SheetJS, heic2any, utif2, JXL codecs) are loaded on demand from the site itself
- Mixed batches (for example images plus audio) are blocked: convert one kind at a time
- GIF output is capped at 3000 frames and 400 million total pixels; longer clips need a lower frame rate, smaller height or trimming
- Images larger than the device's canvas limit are scaled down (with a warning)
- Excel to other data formats converts only the first sheet; Excel to PDF includes all visible sheets; hidden sheets and hidden slides are skipped
- PDF to text needs selectable text (scanned PDFs fail); password-protected PDFs are rejected
- PPTX/ODP charts, SmartArt and embedded objects are left out; HTML, DOCX and slide PDFs are images of the page, not selectable text
- PDF table text uses the built-in PDF font, so non-Latin scripts and emoji may appear garbled (a warning is shown)
- Target size can fail when the file is too long (audio/video) or too detailed (images, even at 320 px) for the limit; the error states the minimum workable size
- Target size has no link parameter: the size mode and limit come from the last settings saved for that output format
- Hardware video encoding needs WebCodecs (VideoEncoder/VideoDecoder); without it video uses the slower FFmpeg path
- Stored locally (localStorage): overtooled:file-converter:last-output (last output format per category) and overtooled:file-converter:options (last options per output format)

## Link parameters

Open the tool pre-filled by adding these to its URL:

- `to`: Output format to preselect when it fits the dropped files: a file extension (jpg, png, webp, pdf, mp4, gif, mp3, json, csv, ...). Unknown values are ignored. Pages such as /convert/heic-to-jpg do the same for popular pairs. Example: https://overtooled.com/file-converter?to=jpg
- `from`: Expected input format (an extension such as heic or mov). Only changes the drop-zone hint; every supported file is still accepted. With the same value as `to` (jpg, webp, jxl, mp3, mp4, ...) the link opens a "make this smaller" conversion; /convert/jpg-to-jpg redirects here the same way (no page of its own). Example: https://overtooled.com/file-converter?from=jpg&to=jpg

## Questions and answers

### How does the File Converter work?

It first detects each file's real type (extension, then browser MIME type, then header bytes) and offers only the outputs that work for it. Each family has its own engine. Images are decoded (natively, or with WASM decoders for HEIC, TIFF and JXL), drawn to a canvas and re-encoded; JPEG to JXL and back is done losslessly. Audio is decoded with the Web Audio API and encoded to WAV, AIFF or MP3 in a Web Worker or to Opus with WebCodecs; FLAC, AAC, M4A, large files and anything the browser can't decode use FFmpeg compiled to WebAssembly. Video uses WebCodecs hardware or software encoding through Mediabunny, with FFmpeg.wasm as the fallback. Data formats are parsed into JavaScript objects and written out in the target format, and PDFs are read with pdf.js and created with jsPDF.

### What file formats can I convert?

Images: PNG, JPEG, WebP, BMP and JXL in and out, plus GIF, SVG, HEIC, HEIF and TIFF as input. Audio: WAV, MP3, FLAC, AAC, M4A, Opus and AIFF in and out, plus OGG Vorbis as input. Video: MP4, WebM, MOV, MKV and MPEG-TS in and out, AVI as input, and animated GIF as output. Data: JSON, CSV, TSV, XML, YAML, TOML, INI and Excel (XLSX), plus SQL INSERT statements as output. Markup: Markdown, HTML and plain text. Documents: PDF to images or text, and images, data, markup, DOCX, PPTX, ODT, ODP, ODS and RTF to PDF.

### Can I compress videos without changing the format?

Yes. Pick the same format (for example MP4 to MP4) and choose a Size mode. Recommended offers Keep quality (looks the same, noticeably smaller) or Minimal size (up to 720p and 30 fps). Target size plans the bitrate and resolution so each file ends up under a size you choose, with presets for Discord (19 MB) and email (24 MB). Custom gives you the CRF quality slider. You can also cap the resolution (4K down to 360p) or remove the audio track. In Recommended mode, if the re-encode would not make the file smaller (and no other settings were changed), the original is kept.

### Can I make a JPG or MP3 smaller, or fit it under a size like 200 KB?

Yes. Pick the same format (JPG to JPG, WebP to WebP, JXL to JXL, MP3 to MP3 and so on: the button is marked Compress) or any other lossy format, and choose Target size. Type a limit in KB or MB or tap a quick pick: 100 KB, 200 KB, 500 KB, 1 MB or 2 MB for images, 5 MB, Discord (19 MB) or email (24 MB) for audio. Images get the highest quality that fits, and only if that is not enough the pixel size is reduced (the result says so, for example "Resized to 1600x1200 to fit 200 KB"). Audio gets the highest bitrate that fits. A file already under the limit is kept as it is. PNG and BMP are lossless, so they have no size setting; the converter offers a one-tap switch to WebP or JPG instead. Each file comes out at or under the size you set.

### How does video conversion work?

If the browser supports WebCodecs, the video is converted with Mediabunny using hardware encoding, then software encoding if that fails. H.264 is used by default and VP9 for WebM. If WebCodecs is missing or can't handle the file (for example AVI, or a codec the browser can't decode), FFmpeg.wasm takes over. For longer videos on multi-core devices it splits the video into segments and encodes them in parallel workers; otherwise it runs single-threaded. If FFmpeg also fails but WebCodecs could handle the picture, you get the video without audio and a warning. GIFs are made by capturing frames in the browser and encoding them in parallel workers, with FFmpeg as the fallback.

### Is my data uploaded to a server?

No. Every conversion runs in your browser and your files never leave your device. The only download is the converter itself. Some jobs (FLAC, AAC or M4A output, large audio files, AVI input, and video when the browser's own encoder can't be used) need FFmpeg, and the first time that happens the browser downloads the FFmpeg core (about 31 MB) from the jsDelivr CDN. After that it is served from the browser cache. No file data is sent with that request.

### Can I convert multiple files at once?

Yes. Drop up to 50 files at once and convert them all to the same target format. Download files individually or grab everything as a ZIP archive.

### Is there a file size limit?

The tool sets no per-file size limit, but your device's memory is the practical limit. Large audio is routed to FFmpeg instead of being decoded in full, and FFmpeg reads files of 50 MB or more from disk as needed rather than copying them into memory. Converted videos are still assembled in memory, and images and documents are read whole. Images bigger than your browser's canvas limit are scaled down with a warning, and GIF output is capped at 3000 frames and 400 million total pixels.

## Popular conversions

Pages preset to one conversion:

- [HEIC to JPG Converter](https://overtooled.com/convert/heic-to-jpg)
- [HEIC to PNG Converter](https://overtooled.com/convert/heic-to-png)
- [WebP to JPG Converter](https://overtooled.com/convert/webp-to-jpg)
- [WebP to PNG Converter](https://overtooled.com/convert/webp-to-png)
- [PNG to JPG Converter](https://overtooled.com/convert/png-to-jpg)
- [JPG to PNG Converter](https://overtooled.com/convert/jpg-to-png)
- [PNG to WebP Converter](https://overtooled.com/convert/png-to-webp)
- [JPG to WebP Converter](https://overtooled.com/convert/jpg-to-webp)
- [TIFF to JPG Converter](https://overtooled.com/convert/tiff-to-jpg)
- [JPG to PDF Converter](https://overtooled.com/convert/jpg-to-pdf)
- [PNG to PDF Converter](https://overtooled.com/convert/png-to-pdf)
- [PDF to JPG Converter](https://overtooled.com/convert/pdf-to-jpg)
- [PDF to PNG Converter](https://overtooled.com/convert/pdf-to-png)
- [DOCX to PDF Converter](https://overtooled.com/convert/docx-to-pdf)
- [PPTX to PDF Converter](https://overtooled.com/convert/pptx-to-pdf)
- [MOV to MP4 Converter](https://overtooled.com/convert/mov-to-mp4)
- [MP4 to GIF Converter](https://overtooled.com/convert/mp4-to-gif)
- [MP4 to WebM Converter](https://overtooled.com/convert/mp4-to-webm)
- [WebM to MP4 Converter](https://overtooled.com/convert/webm-to-mp4)
- [MKV to MP4 Converter](https://overtooled.com/convert/mkv-to-mp4)
- [AVI to MP4 Converter](https://overtooled.com/convert/avi-to-mp4)
- [WAV to MP3 Converter](https://overtooled.com/convert/wav-to-mp3)
- [M4A to MP3 Converter](https://overtooled.com/convert/m4a-to-mp3)
- [FLAC to MP3 Converter](https://overtooled.com/convert/flac-to-mp3)
- [CSV to JSON Converter](https://overtooled.com/convert/csv-to-json)
- [JSON to CSV Converter](https://overtooled.com/convert/json-to-csv)
- [XLSX to CSV Converter](https://overtooled.com/convert/xlsx-to-csv)
- [YAML to JSON Converter](https://overtooled.com/convert/yaml-to-json)
- [XML to JSON Converter](https://overtooled.com/convert/xml-to-json)

## Related tools

- [Image Converter](https://overtooled.com/image-converter.md): Convert images to JPG, PNG, WebP, or JPEG XL instantly in your browser
- [Placeholder File Generator](https://overtooled.com/placeholder-generator.md): Generate placeholder files of any type -- text, JSON, CSV, images, audio, and video
- [Audio Lab](https://overtooled.com/audio-lab.md): Mix, edit and export multi-track audio with waveforms, effects, undo and WAV/MP3/Opus export
- [File Viewer](https://overtooled.com/file-viewer.md): Drop any file to view it -- images, videos, audio, code, JSON, CSV, PDF, fonts, and binary files with magic bytes detection

---
Overtooled: 179 free tools that run in your browser. Index of all tools: https://overtooled.com/llms.txt
