---
title: 'Supported formats'
category: 'basics'
position: 1
---

# Supported formats

## Images

TwicPics only recognizes `AVIF`, `GIF`, `HEIF`, `JPEG`, `PNG`, and `WebP` files as transformable images. In the case of unsupported file formats, the default behavior is to return an `HTTP 415` error.

<doc-alert>Ideally though, we recommend using original high-quality `JPEG` images. Your optimized images will benefit from the best ratio between quality and weight.</doc-alert>

<!-- TODO: move this part to "image best practices" -->
<!-- <doc-alert type="warning">For performance reasons, we do not recommend the use of the `AVIF` format for your optimized assets.</doc-alert>

En effet, bien que le format AVIF soit plus léger, il engendre :

- une consommation importante de ressources à la décompression.
- un premier appel plus couteux en terme de performances, lié à son temps d'encodage plus long.

Cela a pour effet de consommer de façon excessive la batterie des terminaux de vos utilisateurs sur mobile et de ralentir l'affichage de vos pages. Ce que le format AVIF apporte en terme de poids est donc perdu sur ces deux aspects. -->

## Videos

TwicPics accepts all formats of your original videos.

<doc-alert>We recommend that you use the `MP4` format for your original videos. Encoding performance will be better.</doc-alert>

## Other file types

By default, TwicPics only handles images and videos.

However, by activating the **passthrough feature**, you can allow unsupported files to pass through unaltered. This means you can use your TwicPics domain to deliver CSS or JavaScript files and take advantage of the TwicPics CDN. There is obviously a limit to the size of such files, but it is plenty enough for web usage.
