# Image convert > How do you change an image's file type? Convert an image to PNG, JPEG or WebP, or to AVIF where your browser can write it. It stays on your device. Convert a picture between PNG, JPG, WebP and AVIF in your browser, choose the quality and the background for transparency, and download it. Nothing is uploaded. - Page: https://how.box/image-convert/ - Runs entirely in the browser. - License: HowToolbox's own text and data (titles, explanations, FAQs, tool descriptions and schemas, this file) are CC BY 4.0 (https://creativecommons.org/licenses/by/4.0/); AI training and answers are welcome. Attribute "HowToolbox (how.box)" with a link to the page used. Third-party data keeps its own terms; the name and logo are not licensed. Publisher: HowToolbox, contact@how.box. Terms: https://how.box/about/terms/ ## Inputs Answer link: https://how.box/image-convert/?t={t}&q={q}&bg={bg} - `t` (png, jpeg, webp or avif): File type: png, jpeg, webp or avif. Example: `webp`. - `q` (whole number 1 to 100): Quality from 1 to 100 for jpeg, webp and avif. Example: `90`. - `bg` (white, black or gray): Colour under transparent pixels for jpeg: white, black or gray. Example: `white`. Example answer: https://how.box/image-convert/?t=webp&q=90&bg=white The page computes the answer in the browser: read results from the agent tools below, not from the page HTML. ## Agent tools - `image_convert_file_name`: Tells what converting an image to a file type gives: the new file name, media type and whether the type keeps transparency and is lossy. - MCP: POST https://how.box/mcp `tools/call` with `{"name":"image_convert_file_name","arguments":{…}}`; input schema in https://how.box/agent-tools.json. ## How it works A file type is a way of storing the same pixels. PNG stores them exactly, so files are larger but nothing is lost. JPEG, WebP and AVIF are lossy: they drop fine detail the eye hardly notices to make the file much smaller. Your browser reads the picture and saves it again in the type you choose, on your own device. Transparency is the one thing that does not always carry over. PNG, WebP and AVIF keep it, but JPEG has no transparent pixels, so the see-through areas are filled with a background colour, white unless you pick another. Converting between lossy types, or saving a JPEG again, loses a little quality each time, so keep the original. WebP and AVIF usually give a smaller file than JPEG at the same look, but not every browser can write them, so the list only shows the types yours can. Moving pictures such as animated GIFs become a single still image. ## FAQ **Is my image uploaded?** No. The image is opened and converted in your browser and never leaves your device. **Why did my transparent PNG get a white background?** JPEG cannot store transparency, so the see-through areas are painted with a colour. Choose PNG, WebP or AVIF to keep them, or pick another background colour. **Which type should I choose?** JPEG is accepted almost everywhere. WebP is a good modern choice for the web, AVIF can be smaller still, and PNG suits screenshots, logos and anything with sharp edges. **Why is AVIF or WebP missing from the list?** Browsers differ in which types they can write. Only the types your browser can save are offered. **Will an animated image stay animated?** No. The converted file contains one still image, not the animation. More: [HowToolbox index](https://how.box/llms.txt) · [Agent Skill](https://how.box/skill.md) · [agent terms](https://how.box/about/agents/)