Web & Tech
Data formats: the essential file types, conversion and file sizes explained
The most important file types at a glance
A file always consists of two layers: the format, which determines how the data is stored internally, and the file extension such as .jpg or .pdf, the visible label on the name. For practice, four questions matter most: Can I open the file everywhere, in other words how high is the compatibility? How large will it be? Can I continue editing it? And does the quality remain?

| Format | Category | Compression | Transparency | Typical size | Main use |
|---|---|---|---|---|---|
| JPG/JPEG | Raster image | lossy | no | smartphone photo approx. 2 to 5 MB | photos, web, email |
| PNG | Raster image | lossless | yes | logo or screenshot approx. 20 KB to 2 MB | graphics, screenshots, logos |
| GIF | Raster image | lossless, max. 256 colors | yes, 1 bit | animated usually 1 to 15 MB | short animations, memes |
| WebP | Raster image | both possible | yes | 25 to 34 % smaller than JPG (2026) | web images |
| SVG | Vector graphic | lossless | yes | icon approx. 1 to 50 KB | logos, icons, scalable graphics |
| Document | partly lossy | n/a | text page approx. 50 to 300 KB | print, final documents, archive | |
| DOCX | Text document | ZIP-based | n/a | letter without images approx. 10 to 200 KB | editable text |
| XLSX | Spreadsheet | ZIP-based | n/a | small table under 100 KB | calculations, evaluations |
| TXT | Plain text | none | n/a | a few bytes to MB | notes, logs, code |
| CSV | Text data | none | n/a | 1,000 rows roughly 30 to 150 KB | data exchange, export |
| ZIP | Container/archive | lossless, DEFLATE | n/a | saves 0 to 80 % depending on content | bundling, sending |
| MP3 | Audio | lossy | n/a | 128 kbit/s around 1 MB per minute | music, podcasts |
| MP4 | Video container | lossy | n/a | 5 Mbit/s around 37.5 MB per minute | videos of all kinds |
| HEIC | Raster image | lossy, efficient | yes | around half the size of JPG | iPhone photos since iOS 11 |
Of these formats, PNG and JPEG continue to dominate the web. According to the latest counts from W3Techs, around 75.5 % of all websites deliver PNG, 69.4 % JPEG, SVG 67.7 %, the modern WebP 21.8 %, GIF still 13.5 % and AVIF 1.7 % (Sep 2026). The WebP figure measures how many websites deliver the format. Browser support is much higher and stands at over 96 % (Mar 2026).
Lossless or lossy: the golden rule
Whether a file loses quality during editing and conversion is decided by compression. In lossy compression such as JPG, MP3 or MP4, data is removed that the eye or ear barely notices, which makes the file clearly smaller. In lossless storage such as PNG or ZIP archiving, every piece of information remains, which makes the file larger or only compresses to a limited extent.
The golden rule: as long as you keep editing a file, work losslessly and therefore in a working format such as PNG, DOCX or XLSX. Only at the end, when the result is final, convert to a lossy target such as JPG, WebP or PDF for web, email or distribution. Repeatedly saving as JPG degrades the image with every pass, this is called the generation effect, and no later conversion brings that damage back.
Converting data: the right conversion paths
Many problems arise because the wrong pair of source and target format is chosen. A rule of understanding helps: the more similar two formats are, the cleaner the conversion. Raster images are best converted into other raster images, for example with the free image converter from JPG to PNG or WebP. Photos and scans can be combined into a single document with images to PDF, for example for an application or an authority submission.

| From | To | Cleanly possible | Caution |
|---|---|---|---|
| JPG | PNG | yes, lossless, but becomes larger | quality does not improve |
| JPG | WebP | yes, clearly smaller | only for web, not for print |
| HEIC | JPG | yes, needed for exchange | common with iPhone |
| PNG | WebP | yes, lossless possible | test with the image |
| DOCX | yes, ideal for the final | check layout | |
| images | yes, per page | better use pdf-tools | |
| CSV | JSON | yes, lossless | mind separators |
| JSON | YAML | yes, lossless | mind indentation |
| XML | JSON | yes, lossless | attributes partly lost |
| Markdown | HTML | yes, lossless | content pipeline |
For data exchange between systems, CSV, JSON and XML are the typical partners. The CSV-JSON converter exchanges them losslessly, JSON to YAML helps with configuration files and XML to JSON in the interface world. For content pipelines, Markdown to HTML converts quickly and reliably.
For text files, the character encoding is crucial. Today UTF-8 is the standard. Anyone who exports with the wrong encoding sees typical garbage characters such as ä with umlauts. Caution when sending over email: many attachments are automatically Base64-encoded, which inflates the file by about a third and is a common reason why sent documents seem larger than locally.
Web image formats 2026: WebP and the rise of AVIF
For images on the internet, the situation has shifted in recent years. WebP has become the de facto standard for modern delivered photos and is supported by practically all current browsers, according to Can I Use around 96.8 % (Mar 2026). New: AVIF has also reached critical mass, browser support stands at over 95 % and the gap to WebP has shrunk to just over one and a half percentage points. The old advice that AVIF is risky is therefore no longer tenable in 2026.
| Format | Website usage (W3Techs) | Browser support | Role 2026 |
|---|---|---|---|
| PNG | 75.5 % | around 99 % | reference for graphics, transparency |
| JPEG | 69.4 % | around 100 % | photos, compatibility, email |
| SVG | 67.7 % | around 98 % | vector graphics, logos, icons |
| WebP | 21.8 % | 96.8 % | primary modern web format |
| GIF | 13.5 % | around 99 % | animation, often replaced |
| AVIF | 1.7 % | 95.4 % | premium compression, growing |
| HEIC | not listed | 14.6 %, Safari only | Apple ecosystem |
| JPEG XL | under 0.1 % | 0 % | practically dead for the web |
In terms of compression, AVIF is clearly superior to JPEG and also ahead of WebP. As a guide: lossy WebP is about 25 to 34 % smaller than JPEG at the same quality, and AVIF is reportedly around 20 % smaller than WebP again depending on the source. The catch: AVIF does not always win. With flat graphics, logos and screenshots, WebP or a good JPEG can be smaller and cleaner. The pragmatic recommendation from experts is therefore the HTML picture element, which provides AVIF for modern, WebP for mid-range and JPG for old browsers, usually the CMS generates these three variants automatically from one upload.
Which format for which purpose?
Practice translates into a clear checklist. Anyone who sticks to it will in the vast majority of cases have both the right quality and the smallest sensible file.
- Send or print a photo: JPG, quality about 80 to 90 %
- Place a photo on a website: WebP
- Logo or graphic with transparency: SVG, otherwise PNG
- Screenshot: PNG
- Animation, small and modern: WebP (animated) or MP4 instead of GIF
- Send a document as final: PDF
- Document official or for archiving: PDF/A
- Text for further editing: DOCX
- Calculations and tables: XLSX
- Data between systems: CSV, for web and API JSON
- Logs, notes and code: TXT with UTF-8
- Several files as one attachment: ZIP
- Listen to music universally: MP3, 128 to 320 kbit/s
- Share video universally: MP4 with H.264
- Output an iPhone photo: export as JPG
- B2B invoice in Germany: XRechnung or ZUGFeRD, no normal PDF
Anyone looking for a complete process from image selection to export will find a step-by-step guide in the optimize images for the web playbook. The web images in publishing show how photos and graphics are prepared cleanly for publication.
Email attachments: size limits and the safe corridor
The maximum attachment size depends on the provider and usually refers to the entire message, meaning all attachments together. The Base64 encoding is also decisive: it increases the actual transfer size by about a third. A 25 MB message therefore only allows about 18 MB of raw file data.

| Provider | Limit per message | Raw data after Base64 | Recommendation |
|---|---|---|---|
| Gmail (private) | 25 MB | approx. 18 MB | up to 15 MB |
| Outlook.com | 25 MB | approx. 18 MB | up to 15 MB |
| Yahoo Mail | 25 MB | approx. 18 MB | up to 15 MB |
| GMX FreeMail | 20 MB | approx. 15 MB | up to 10 MB |
| WEB.DE FreeMail | 20 MB | approx. 15 MB | up to 10 MB |
| T-Online | 32 MB | approx. 24 MB | up to 20 MB |
| Corporate Exchange (default) | approx. 10 MB | approx. 7.5 MB | up to 7 MB |
The values come from the official help pages of the providers (Sep 2026). Corporate mail servers hang at about 10 MB as the factory default according to many IT experts, although administrators can raise the value and Microsoft 365 allows 25 MB by default (2026). If an attachment exceeds the limit in Gmail, it is automatically removed and inserted as a Google Drive link.
This produces a robust practical value: around 10 MB per email gets through with almost all providers, including restrictive corporate servers, and leaves enough buffer for the Base64 inflation. Anyone sending large images should compress them first with the image compressor or slim down PDFs with the PDF tools. You bundle several files into a ZIP folder, keeping in mind that some mail servers and authority ports block ZIP attachments for security reasons.
Understanding and controlling file sizes
The biggest levers for file size are resolution and quality, not the format itself. A photo with 12 megapixels is always large, whether as JPG or WebP, compression only saves a part. Anyone who wants small files first reduces the pixels, then the quality. The file size converter converts the common units KB, MB and GB when values from bitrates are to be translated into understandable sizes.

Audio: The size of an MP3 file follows the formula bitrate × duration ÷ 8. At 128 kbit/s that is around 0.94 MB per minute and about 56 MB per hour, at 320 kbit/s around 2.3 MB per minute.
| Bitrate | KB/s | MB per minute | MB per hour | Use |
|---|---|---|---|---|
| 64 kbit/s | 8 | 0.47 | approx. 28 | speech podcast |
| 128 kbit/s | 16 | 0.94 | approx. 56 | standard MP3, podcast |
| 192 kbit/s | 24 | 1.4 | approx. 84 | music |
| 320 kbit/s | 40 | 2.3 | approx. 138 | MP3 maximum |
Video: Here total bitrate × duration ÷ 8 applies. A video at 5 Mbit/s needs about 37.5 MB per minute and around 2.25 GB per hour. The bitrate depends strongly on the codec and resolution.
ZIP: Compression is lossless, but it only works where redundancy exists. Text and CSV lose 60 to 80 % of their size, office documents 20 to 50 %, already compressed formats such as JPG, MP3, MP4 or PDF almost nothing. Wrapping an MP4 saves little space and the ZIP envelope only makes the file more unwieldy.
Video and audio: container, codec and the licensing question
A common misunderstanding: MP4 is not a codec, but a container, meaning a packaging for video and audio tracks. The actual compression method, the codec, sits inside it, for example H.264, H.265 or AV1. This difference explains why an identically looking MP4 runs on one device and not on another.
| Codec | Year | Royalty-free | Compression vs H.264 | Browser support | Web recommendation |
|---|---|---|---|---|---|
| H.264/AVC | 2003 | no | reference | around 100 % | fallback |
| H.265/HEVC | 2013 | no | 35 to 50 % less | fragmented | conditional |
| AV1 | 2018 | yes | 55 to 65 % less | over 95 % | preference |
| VVC/H.266 | 2020 | no | even better | barely | no |
H.264 remains the workhorse codec and runs everywhere. H.265 offers better compression but suffers from a complex licensing and patent situation that increasingly pushes manufacturers to AV1. AV1 is fully royalty-free, saves around half to two thirds of the bitrate compared to H.264 at the same quality and now has hardware support in almost all modern devices (2026). VVC finally is irrelevant for the browser and remains reserved for broadcast and premium OTT.
Animations too: anyone sharing short clips should not rely on GIF. GIF stores every frame as its own color-reduced image without inter-frame estimation and therefore becomes huge. An MP4 or WebM can be ten to a hundred times smaller depending on the subject, as shown by a comparison of a 5-second recording in which an 8.4 MB GIF only weighs 211 KB as H.264 MP4 (2026).
Authorities and official submission: PDF/A and e-invoices
For documents that are officially submitted or permanently archived, PDF is the standard and PDF/A the safe choice. PDF/A is a standardized archive format according to ISO 19005 that embeds fonts and colors bindingly and thus ensures long-term, device-independent readability. For most archiving and submission purposes, PDF/A-2 is the common recommendation, PDF/A-4 has been built on PDF 2.0 since 2020 (2026).

Already compressed or scanned authority documents are best bundled with the PDF tools into one file, and you protect confidential documents with a password. Important for context: the studio-tools PDF toolset creates a normal PDF export, PDF/A is created in the respective original writing program, for example via the export dialog of Word or a PDF printer with an archive profile.
Since 1 January 2025, the obligation to receive e-invoices has applied to domestic B2B business, and the creation obligation comes in stages: from 2027 for larger and from 2028 for all companies. The recognized formats are XRechnung and ZUGFeRD, which both build on the European standard EN 16931. Requirements to authorities are stricter and XRechnung has been standard there for longer (2026). A normal PDF is not an e-invoice, even if it is sent along as evidence.
Frequently asked questions
Which image file has the smallest file size?
Is WebP better than JPG and should I convert everything?
Can I convert a JPG back into lossless quality?
Why is my converted file sometimes larger than before?
How large may an email attachment be at most?
Which format do authorities accept most safely?
What is the difference between MP4 and H.264?
Why does my iPhone save photos as HEIC and not JPG?
Do I lose quality when I zip a file?
This handbook is a general guide and does not replace professional advice. Compression formats and browser shares change constantly, rely on current values for concrete projects. Authority requirements and the e-invoice obligation can shift with legislation changes, check deadlines and requirements in individual cases.
Sources & status of these figures
The figures in this handbook come from the named sources and were last checked on 12 September 2026. Market shares of formats, browser support and provider size limits change, so every current value carries a date. Experience values are marked as such.
- W3Techs: distribution of image formats on the web, September 2026. w3techs.com
- Can I Use: browser support for WebP, AVIF, HEIC and JPEG XL, March 2026. caniuse.com
- Google: An image format for the Web (WebP study, 25 to 34 percent smaller than JPEG). developers.google.com
- Gmail Help: attachment size limits, 25 MB private, Drive link on excess. support.google.com
- Microsoft: sending limits in Outlook.com, 25 MB, OneDrive share up to 2 GB. support.microsoft.com
- GMX Help: attachment limit FreeMail 20 MB, ProMail 50, TopMail 100. hilfe.gmx.net
- WEB.DE Help: attachment limit FreeMail 20 MB, Club and MailPlus up to 100 MB. hilfe.web.de
- Telekom hilft: maximum attachment size at T-Online 32 MB. telekomhilft.telekom.de
- WiseStamp: default attachment limits on-premises Exchange around 10 MB. wisestamp.com
- PDF Association: ISO 19005 PDF/A, versions 1 to 4 and levels. pdfa.org
- Federal Ministry of Finance: e-invoice with XRechnung and ZUGFeRD, transition from 2025.
- RFC 4180: Common Format and MIME Type for Comma-Separated Values (CSV). datatracker.ietf.org
- Bitmovin: Video Developer Report, version 10, 2026. streaminglearningcenter.com
- forasoft: Visual codec comparison H.264 vs H.265 vs AV1, May 2026. forasoft.com
- web.dev: Replace animated GIFs with video for faster page loads. web.dev