Format conversion

Also known as: file conversion

On this page 7

Format conversion (also called file conversion) is the process of transforming data from one file format into another so that it can be opened, edited or processed by software that does not support the original format. In interoperability, it is the most common practical bridge between applications, platforms and vendors that do not share a common format.

A conversion reads the source file, builds an internal representation of its content and writes that content in the target format. Whether the result is faithful depends on how well the two formats can express the same features, which makes loss of fidelity the central concern of every conversion.

How format conversion works

Most converters follow a three-stage pipeline: a parser decodes the source format, an intermediate model holds the content in a neutral structure, and a writer encodes that model into the target format. Tools such as document converters, media transcoders and image libraries all use variations of this design.

  1. Parsing: the converter reads the byte structure of the source, including headers, compression and character encoding.
  2. Mapping: each element, such as a paragraph style, a color profile or an audio channel, is mapped to the closest equivalent in the target.
  3. Serialization: the converter writes the target file, applying its own compression, metadata and encoding rules.
  4. Validation: well-designed pipelines check that the output opens correctly and report features that could not be mapped.

The intermediate model is what makes many-to-many conversion practical. A tool that supports 20 input and 20 output formats needs 40 readers and writers instead of 400 direct converters. The model, however, can only carry features that it represents, so anything outside it is silently dropped.

Conversion can happen in different places. A user may run it manually with Save As or Export in an application, a server may run it automatically in a batch pipeline, or a web service may convert files on upload. Server-side and online conversion is convenient, but it sends the content to another system, which matters for confidential documents and regulated data.

Types of format conversion

Conversions differ mainly in whether information is preserved. The table below groups them by what happens to the content.

TypeWhat changesInformation lossExample
Lossless container changeWrapper only, content untouchedNoneMKV to MP4 without re-encoding
Lossless transcodingEncoding changes, content exactNoneWAV to FLAC, PNG to lossless WebP
Lossy transcodingContent re-encoded with compressionPermanentFLAC to MP3, PNG to JPEG
Structural conversionDocument model is remappedPartialDOCX to ODT, XLSX to CSV
Rendering conversionContent flattened to a fixed layoutEditability lostDOCX to PDF, SVG to PNG
Encoding conversionCharacter set changesPossibleWindows-1252 to UTF-8
Main types of conversion

Generation loss is a specific risk of lossy conversion. Each time a file is decoded and re-encoded with a lossy codec, new compression artifacts are added. Converting an MP3 to AAC, for example, cannot restore detail already removed and usually adds further degradation.

What gets lost and why

Loss in format conversion occurs whenever the target format cannot express a feature of the source, or when the converter does not implement it. The second cause is common: even two well-documented formats may convert badly because the tool supports only part of each specification.

Content typeFeatures often lostCause
Word processing documentsTracked changes, macros, complex tablesDifferent document models
SpreadsheetsFormulas, formatting, multiple sheetsCSV stores only values of one sheet
ImagesTransparency, color profiles, layersTarget format lacks the feature
Audio and videoQuality, subtitles, chapter markersLossy codecs, container limits
Text filesAccented and non-Latin charactersWrong character encoding assumed
MetadataAuthor, dates, EXIF or GPS dataWriters ignore unknown fields
Typical losses by content type

Metadata loss can be either a problem or a benefit. Stripping EXIF location data during conversion protects privacy, while losing creation dates or rights information can break archival and legal requirements.

Format conversion and interoperability strategy

Format conversion is a workaround for missing interoperability, not a substitute for it. When two systems share an open standard or an open format, no conversion is needed and no fidelity is lost. When one side uses a proprietary format, conversion is often the only way to exchange data or leave a platform.

Conversion is also the practical mechanism behind data portability and the reduction of vendor lock-in. Exporting to a documented format such as CSV, JSON, ODF or PDF/A gives organizations a copy they can read without the original application. The table below shows common choices.

GoalRecommended targetReason
Long-term archiving of documentsPDF/ASelf-contained, fixed rendering
Continued editing elsewhereODF or DOCXKeeps structure and styles
Data exchange between systemsCSV, JSON or XMLSimple, widely parsed, documented
Web imagesWebP or AVIF with a JPEG fallbackSmaller files, broad support
Audio mastersFLAC or WAVNo generation loss
Choosing a target format

Good practice and common mistakes

Reliable conversion depends on treating the original as the master copy and verifying the result. Experienced teams follow a few consistent rules.

  • Keep the original file and convert from it each time instead of chaining conversions.
  • Declare the character encoding explicitly when importing text or CSV files; guessing causes garbled characters.
  • Test a representative sample before a bulk migration, including the most complex files.
  • Check numbers and dates after spreadsheet conversion, because locale settings can swap decimal separators or day and month.
  • Do not trust file extensions; renaming a file does not convert it and only hides the real format.

The simple explanation

Format conversion means saving the same content in a different kind of file. A program that cannot read one type of file may read another. Converting is like translating a letter into another language so a new reader can understand it.

As with translation, some things do not carry over well. A spreadsheet saved as plain text keeps its numbers but loses its formulas. A photo saved in a smaller format may lose fine detail. The safest habit is simple: keep the original and convert a copy.

How it is used in practice

A city archive moves 40,000 office documents from an obsolete word processor to a new system. Staff first convert a test set of 500 representative files to ODF for editing and to PDF/A for permanent storage. The test reveals two issues: embedded charts lose their data, and some older files use a legacy character encoding that turns accented names into symbols.

The team sets the correct source encoding in the converter and exports charts as images before conversion. After a second test passes visual comparison, the full batch runs overnight. The archive keeps the original files alongside the converted copies. The result is searchable, readable documents that no longer depend on the discontinued software, with a documented record of what each conversion preserved.