# Convert JPG to PNG

Runs in your browser, so the file is not uploaded and it works offline. A file your browser cannot read, or one with a setting only our server can apply (such as lossless, keeping metadata or a crop), goes to our server instead, and the page says so. Free, no account, no watermark.

Results are deleted 15 minutes after the job finishes.

## API

POST the file as the raw request body to https://toolsforfree.app/api/jobs?from=jpg&to=png, then

GET https://toolsforfree.app/api/jobs/{taskId}?engine={engine} until state is done,
then GET https://toolsforfree.app/api/jobs/{taskId}/output?engine={engine}&format={format}, with the taskId, engine and format the 202 answers.

Details: https://toolsforfree.app/api.md

MCP: call convert_file at https://toolsforfree.app/mcp with from "jpg" and to "png".

## Options

Sent as JSON in the x-tff-options header. Bounds and allowed values are in https://toolsforfree.app/openapi.json.

- `image`: quality, targetKb, lossless, effort, width, height, fit, focus, allowEnlarge, stripMetadata, rotate, autoOrient, density, page, flip, background, crop

## Questions

### Does converting JPG to PNG lose quality?

Nothing further is lost, but nothing is recovered either. PNG stores exactly what the JPG contains, compression artefacts included, and the file is usually several times larger for no visible gain.

### Can I convert the PNG back to JPG?

Yes, and the file will open — but a round trip is not free. Each pass re-encodes, so going JPG to PNG and back leaves you with less than you started with.

### What can I change about the PNG it produces?

You can choose the quality, how long to spend, whether to keep EXIF, whether to turn it the way the camera recorded, the DPI a printer reads, the width and height, whether to keep the shape, a size by percent, and whether to enlarge. Anything left on Auto is decided by the encoder, which is usually the right answer unless you are targeting a specific size or device.
