Convert File Type
About This Page
I wanted to create this page to make it easier for me to convert between file types for image, video, audio, and text files. I also wanted to create this page to test out markdown to HTML and to HTML using pandoc.
It is also a good way to learn about ImageMagick (for images), ffmpeg (for audio and video) and pandoc (for text files).
Convert Image File Type
I am using ImageMagick to convert between image types. See the supported formats in the section below. In the form below, upload an image and choose an output image type. Submit the form and a link to the resulting image, with the new format, wll be returned.
Format | Mode | Description | Notes |
---|---|---|---|
RW |
Dune HD AAI Image (aka Auburn Animation Image) |
Format used by Dune HD media players to display images with transparency, such as icons for Internet radio stations or channels. |
|
ART |
RW |
PFS: 1st Publisher |
Format originally used on the Macintosh (MacPaint?) and later used for PFS: 1st Publisher clip art. |
R |
AVIF Image File Format |
AV1 in a _HEIF container. AVIF is supported via libheif if it supports AVIF decode. |
|
AVS |
RW |
AVS X image |
|
RW |
Microsoft Windows bitmap |
||
R |
Continuous Acquisition and Life-cycle Support Type 1 image |
Specified in MIL-R-28002 and MIL-PRF-28002. Standard blueprint archive format as used by the US military to replace microfiche. |
|
R |
Kodak Cineon |
Kodak Cineon Log format (4.5 draft). Precursor to SMPTE DPX |
|
R |
Computer Graphics Metafile |
Requires ralcgm to render CGM files. |
|
CMYK |
RW |
Raw cyan, magenta, yellow, and black samples |
Use -size, -depth, -endian, and -interlace to specify the image width, height, depth, byte order, and interlace. |
CUR |
R |
Microsoft Cursor Icon |
|
CUT |
R |
DR Halo |
|
DCM |
R |
Digital Imaging and Communications in Medicine (DICOM) image |
Used by the medical community for images like X-rays. See the NEMA DICOM web site for more information. DICOM is the basis for the DICONDE format. |
DCX |
RW |
ZSoft IBM PC multi-page Paintbrush image |
|
DIB |
RW |
Microsoft Windows Device Independent Bitmap |
DIB is a BMP file without the BMP header. Used to support embedded images in compound formats like WMF. |
RW |
Digital Moving Picture Exchange |
RGB and grayscale are fully supported at 1, 8, 10, 12, and 16 bits as per the SMPTE 268M-2003 (V2.0) specification. This includes support for images stored in a planar (multi-element) configuration and Cineon Log RGB. Rec. 601 and 709 YCbCr are fully supported with 4:4:4 and 4:2:2 subsampling. DPX is commonly used to store image frames in film and HDTV production. |
|
EMF |
R |
Microsoft Enhanced Metafile (32-bit) |
Only available under Microsoft Windows. |
EPDF |
RW |
Encapsulated Portable Document Format |
|
EPI |
RW |
Adobe Encapsulated PostScript Interchange format |
Requires Ghostscript to read. |
EPS |
RW |
Adobe Encapsulated PostScript |
Requires Ghostscript to read. |
EPS2 |
W |
Adobe Level II Encapsulated PostScript |
Requires Ghostscript to read. |
EPS3 |
W |
Adobe Level III Encapsulated PostScript |
Requires Ghostscript to read. |
EPSF |
RW |
Adobe Encapsulated PostScript |
Requires Ghostscript to read. |
EPSI |
RW |
Adobe Encapsulated PostScript Interchange format |
Requires Ghostscript to read. |
EPT |
RW |
Adobe Encapsulated PostScript Interchange format with TIFF preview |
Requires Ghostscript to read. |
FAX |
RW |
Group 3 FAX |
Note that FAX machines use non-square pixels which are 1.5 times wider than they are tall but computer displays use square pixels, so FAX images may appear to be narrow unless they are explicitly resized using a resize specification of "150x100%". Please note that this is not a TIFF format. |
FIG |
R |
FIG graphics format |
Requires TransFig. |
RW |
Flexible Image Transport System |
||
FPX |
RW |
FlashPix Format |
Requires FlashPix SDK. |
RW |
CompuServe Graphics Interchange Format |
8-bit RGB PseudoColor with up to 256 palette entries. Specify the format "GIF87" to write the older version 87a of the format. The PNG format provides a superior set of features to GIF. Consider using PNG format rather than GIF if clients are able to read PNG. |
|
GRAY |
RW |
Raw gray samples |
Use -size, -depth, and -endian to specify the image width, height, depth, and byte order. |
GRAYA |
RW |
Raw gray samples + alpha |
Use -size, -depth, and -endian to specify the image width, height, depth, and byte order. |
R |
High Efficiency Image File Format (with h.265/HEVC encoding) |
HEIF is a container format supporting multiple codecs. HEIF with h.265/HEVC encoding is supported via libheif and libde265. |
|
HPGL |
R |
HP-GL plotter language |
Requires hp2xx 3.2.0 or later |
HTML |
RW |
Hypertext Markup Language with a client-side image map |
Also known as "HTM". Requires html2ps to read. |
HRZ |
RW |
Slow-Scan Television (SSTV) |
This a format used when an image is transmitted over amateur radio using audio equipment. |
ICO |
R |
Microsoft icon |
Also known as "ICON". |
RW |
Joint Bi-level Image experts Group file interchange format |
Also known as "BIE" and "JBG". Requires jbigkit 1.0 or later |
|
RW |
JPEG Network Graphics |
JPEG in a PNG-style wrapper with transparency. Requires libjpeg and libpng-1.0.2 or later, libpng-1.2.5 or later recommended. |
|
JP2 |
RW |
JPEG-2000 JP2 File Format Syntax |
Requires jasper 1.600.0 or later |
JPC |
RW |
JPEG-2000 Code Stream Syntax |
Requires jasper 1.600.0 or later |
RW |
Joint Photographic Experts Group JFIF format |
Requires jpegsrc.v6b.tar.gz or later |
|
RW |
JPEG XL |
Requires JPEG XL 0.7 or later |
|
MAN |
R |
Unix reference manual pages |
Requires that GNU groff and Ghostcript are installed. |
MAT |
RW |
MATLAB image format |
Coming from MathWorks for storing matrices. Currently supported types are 2D matrices: byte, word, double, complex and 3D matrices containing RGB [x*y*3] byte, word. |
RW |
Magick image file format |
ImageMagick's lossless image format (with ASCII header) which ensures that no image attributes understood by ImageMagick or GraphicsMagick are lost. |
|
MONO |
RW |
Bi-level bitmap in least-significant-byte first order |
|
RW |
Multiple-image Network Graphics |
Requires libpng-1.0.2 or later, libpng-1.2.5 or later recommended. |
|
RW |
Motion Picture Experts Group file interchange format (version 1) |
Requires mpeg2vidcodec_v12.tar.gz. |
|
RW |
Motion Picture Experts Group file interchange format (version 2) |
Requires mpeg2vidcodec_v12.tar.gz. |
|
MPC |
RW |
Magick Persistent Cache image file format |
The native "in-memory" GraphicsMagick uncompressed file format. This file format is identical to that used by Open ImageMagick to represent images in memory and is read in "zero time" via memory mapping. The MPC format is not portable and is not suitable as an archive format. It is suitable as an intermediate format for high-performance image processing. The MPC format requires two files to support one image. When writing the MPC format, a file with extension ".mpc" is used to store information about the image, while a file with extension .cache stores the image pixels. The storage space required by a MPC image (or an image in memory) may be calculated by the equation (QuantumDepth*Rows*Columns*5)/8. |
MSL |
RW |
Magick Scripting Language |
MSL is the XML-based scripting language supported by the conjure utility. |
RW |
MTV Raytracing image format |
||
MVG |
RW |
Magick Vector Graphics. |
The native GraphicsMagick vector metafile format. A text file containing vector drawing commands accepted by convert's -draw option. |
OTB |
RW |
On-the-air Bitmap |
|
P7 |
RW |
Xv's Visual Schnauzer thumbnail format |
|
PALM |
RW |
Palm pixmap |
|
RW |
Portable Arbitrary Map format |
Superset of PNM (PPM, PGM, PPM) raw type formats. Supports bilevel, gray, RGB, CMYK, alpha channel. |
|
RW |
Portable bitmap format (black and white) |
||
PCD |
RW |
Photo CD |
The maximum resolution written is 768x512 pixels since larger images require huffman compression (which is not supported). |
PCDS |
RW |
Photo CD |
Decode with the sRGB color tables. |
PCL |
W |
HP Page Control Language |
For output to HP laser printers. |
RW |
ZSoft IBM PC Paintbrush file |
||
PDB |
RW |
Palm Database ImageViewer Format |
|
|
RW |
Portable Document Format |
Requires Ghostscript to read. |
PFA |
R |
Postscript Type 1 font (ASCII) |
Opening as file returns a preview image. |
PFB |
R |
Postscript Type 1 font (binary) |
Opening as file returns a preview image. |
PGM |
RW |
Portable graymap format (gray scale) |
|
PICON |
RW |
Personal Icon |
|
PICT |
RW |
Apple Macintosh QuickDraw /PICT file |
|
PIX |
R |
Alias/Wavefront RLE image format |
|
PNG |
RW |
Portable Network Graphics |
Requires libpng-1.0.2 or later, libpng-1.2.5 or later recommended. |
PNM |
RW |
Portable anymap |
PNM is a family of formats supporting portable bitmaps (PBM) , graymaps (PGM), and pixmaps (PPM). There is no file format associated with pnm itself. If PNM is used as the output format specifier, then GraphicsMagick automatically selects the most appropriate format to represent the image. The default is to write the binary version of the formats. Use '-quality 0' to write the ASCII version of the formats. |
PPM |
RW |
Portable pixmap format (color) |
|
PS |
RW |
Adobe PostScript file |
Requires Ghostscript to read. |
PS2 |
RW |
Adobe Level II PostScript file |
Requires Ghostscript to read. |
PS3 |
RW |
Adobe Level III PostScript file |
Requires Ghostscript to read. |
PSD |
RW |
Adobe Photoshop bitmap file |
PSD format is no longer supported since the 1.3.24 release. |
PTIF |
RW |
Pyramid encoded TIFF |
Multi-resolution TIFF containing successively smaller versions of the image down to the size of an icon. The desired sub-image size may be specified when reading via the -size option. |
R |
Seattle File Works multi-image file |
||
RAS |
R |
TopoL (GIS) |
|
RAD |
R |
Radiance image file |
Requires that ra_ppm from the Radiance software package be installed. |
RGB |
RW |
Raw red, green, and blue samples |
Use -size, -depth, -endian, and -interlace to specify the image width, height, depth, byte order, and interlace. |
RGBA |
RW |
Raw red, green, and blue and matte samples |
Use -size, -depth, -endian, and -interlace to specify the image width, height, depth, byte order, and interlace. |
RLA |
R |
Alias/Wavefront image file |
|
RLE |
R |
Utah Run length encoded image file |
|
R |
Scitex Continuous Tone Picture |
||
R |
Seattle File Works image |
||
SGI |
RW |
Irix RGB image |
|
SHTML |
W |
Hypertext Markup Language client-side image map |
Used to write HTML clickable image maps based on a the output of montage or a format which supports tiled images such as MIFF. |
SUN |
RW |
SUN Rasterfile |
|
RW |
Scalable Vector Graphics |
Requires libxml2 and freetype2. Note that SVG is a very complex specification so support is still not complete. |
|
TGA |
RW |
Truevision Targa image |
Also known as formats "ICB", "VDA", and "VST". |
RW |
Tagged Image File Format |
Also known as "TIF". Requires tiff-v3.5.4.tar.gz or later. Note that since the Unisys LZW patent recently expired, libtiff may still require a separate LZW patch in order to support LZW. LZW is included in libtiff by default since v3.7.0. |
|
TIM |
R |
PSX TIM file |
|
TTF |
R |
TrueType font file |
Requires freetype2. Opening as file returns a preview image. |
TXT |
RW |
Raw text file |
|
UIL |
W |
X-Motif UIL table |
|
UYVY |
RW |
Interleaved YUV raw image |
Use -size command line option to specify width and height. |
VICAR |
RW |
VICAR rasterfile format |
|
RW |
Khoros Visualization Image File Format |
||
RW |
Wireless bitmap |
Support for uncompressed monochrome only. |
|
RW |
Google's WebP |
Requires libwebp from "https://developers.google.com/speed/webp/". WebP is good for small photos for the web and is supported by Google's Chrome and Firefox. |
|
Windows Metafile |
Requires libwmf. By default, renders WMF files using the dimensions specified by the metafile header. Use the -density option to adjust the output resolution, and thereby adjust the output size. The default output resolution is 72DPI so "-density 144" results in an image twice as large as the default. Use -background color to specify the WMF background color (default white) or -texture filename to specify a background texture image. |
||
R |
Word Perfect Graphics File |
||
RW |
X Windows system bitmap, black and white only |
Used by the X Windows System to store monochrome icons. |
|
XCF |
R |
GIMP image |
|
RW |
X Windows system pixmap |
Also known as "PM". Used by the X Windows System to store color icons. |
|
RW |
X Windows system window dump |
Used by the X Windows System to save/display screen dumps. |
|
YUV |
RW |
CCIR 601 4:1:1 |
Use -size command line option to specify width and height. |
Convert Audio File Type
I am using ffmpeg to convert between audio and video file formats. Read more about ffmpeg and see what file types are supported for audio files and video files below. Upload audio / video files in the forms in the appropriate sections below, and submit the form to receive a link to the transcoded audio / video files.
ffmpeg is a universal media converter. It can read a wide variety of inputs - including live grabbing/recording devoces - filter, and transcode them into a plethora of output formats.
ffmpeg reads from an arbitary number of inputs (which can be regular files, pipes, network streams, grabbing devices, etc.), specified by the -i option, writes to anarbitrary number of outputs, which are specified by a plain output url.
Read more about ffmpeg in this daily reading article, and see the section below for more information about which file types can be converted to and from for audio and video files.
Video Formats
Read-Only:
- av1 - AV1 video
- flv - FLV (Flash Video)
- mxf - MXF (Material eXchange Format)
- webm - WebM
- yuv4mpegpipe - YUV4MPEG pipe
Write-Only:
- asf - ASF (Advanced Systems Format) - output only
- avi - AVI (Audio Video Interleaved) - output only
- cavsvideo - raw Chinese AVS video
- roq - raw id RoQ video - output only
Both Read and Write:
- dnxhd - raw DNxHD (SMPTE VC-3)
- evc - raw EVC video
- h261 - raw H.261
- h263 - raw H.263
- h264 - raw H.264 video
- hevc - raw HEVC video
- image2 - image sequence (JPEG, PNG, etc.)
- image2pipe - piped image sequence
- mjpeg - raw MJPEG video
- mp4 - MP4 (MPEG-4 Part 14)
- mpeg - MPEG-1 Systems / MPEG program stream
- mpegts - MPEG-TS (MPEG-2 Transport Stream)
- nut - NUT multimedia container
- obu - AV1 low overhead OBU
- rawvideo - raw video format
- swf - SWF (ShockWave Flash)
- vc1 - raw VC-1 video
- vc1test - VC-1 test bitstream
- vidc - PCM Archimedes VIDC
Audio Formats
Read-Only:
- au - Sun AU format
- shorten - Shorten
- smpte - SMPTE timecode
- w64 - Sony Wave64
- wv - WavPack
- xwma - Microsoft xWMA
Write-Only:
- ass - ASS (Advanced SubStation Alpha)
- srt - SubRip subtitle format
Both Read and Write:
- ac3 - raw AC-3
- ac4 - raw AC-4
- adx - CRI ADX
- aea - MD STUDIO audio
- aiff - Audio IFF
- alaw - PCM A-law
- amr - 3GPP AMR audio
- aptx - raw aptX (Audio Processing Technology for Bluetooth)
- aptx_hd - raw aptX HD (Audio Processing Technology for Bluetooth)
- caf - Apple CAF (Core Audio Format)
- codec2 - codec2 .c2 audio
- daud - D-Cinema audio
- dfpwm - raw DFPWM1a
- dts - raw DTS
- eac3 - raw E-AC-3
- flac - raw FLAC audio
- g722 - raw G.722
- g723_1 - raw G.723.1
- g726 - raw big-endian G.726
- g726le - raw little-endian G.726
- gsm - raw GSM
- lc3 - Low Complexity Communication Codec
- mp3 - MP3 (MPEG audio layer 3)
- mulaw - PCM mu-law
- opus - Ogg Opus
- pcm_s16be - PCM signed 16-bit big-endian
- pcm_s16le - PCM signed 16-bit little-endian
- pcm_s24be - PCM signed 24-bit big-endian
- pcm_s24le - PCM signed 24-bit little-endian
- pcm_s32be - PCM signed 32-bit big-endian
- pcm_s32le - PCM signed 32-bit little-endian
- pcm_s8 - PCM signed 8-bit
- pcm_u16be - PCM unsigned 16-bit big-endian
- pcm_u16le - PCM unsigned 16-bit little-endian
- pcm_u24be - PCM unsigned 24-bit big-endian
- pcm_u24le - PCM unsigned 24-bit little-endian
- pcm_u32be - PCM unsigned 32-bit big-endian
- pcm_u32le - PCM unsigned 32-bit little-endian
- pcm_u8 - PCM unsigned 8-bit
- rm - RealMedia
- sbc - raw SBC
- spdif - IEC 61937 (S/PDIF - IEC958)
- tta - True Audio
- vorbis - raw Vorbis
Convert Video File Type
Convert Text File Type
Upload a file with a valid input type (see the section below for valid input / output types) and select the output type to which you want your file to be converted. I use pandoc on the backend to convert the file from one format to another.
Input File Format
- biblatex: .bib
- bibtex: .bib
- bits: .xml
- commonmark: .md, markdown
- commonmark_x: .md, markdown
- creole: .creole
- csljson: .json
- csv: .csv
- djot: .djot
- docbook: .xml, dbk
- docx: .docx
- dokuwiki: .doku
- endnotexml: .xml
- epub: .epub
- fb2: .fb2
- gfm (GitHub-Flavored Markdown): .md
- haddock: .txt
- html: .html, htm
- ipynb (Jupyter Notebook): .ipynb
- jats: .xml
- jira: .jira
- json: .json
- latex: .tex
- man (manpage): .man, 1, 2 , etc. (sections vary)
- markdown: .md, markdown
- markdown_github: .md
- markdown_mmd (MultiMarkdown): .mmd
- markdown_phpextra: .md
- markdown_strict: .md
- mediawiki: .wiki, mediawiki
- muse: .muse
- native: No standard extension (specific to Pandoc's internal format)
- odt (OpenDocument Text): .odt
- opml: .opml
- org: .org
- ris: .ris
- rst (reStructuredText): .rst
- rtf: .rtf
- t2t (txt2tags): .t2t
- textile: .textile
- tikiwiki: .tiki
- tsv (Tab-Separated Values): .tsv
- twiki: .twiki
- typst: .typ
- vimwiki: .wiki, vimwiki
Output File Format
- asciidoc: .adoc, asciidoc
- asciidoc_legacy: .txt, asciidoc (used with older versions of AsciiDoc)
- asciidoctor: .adoc, asciidoc
- beamer: .tex
- biblatex: .bib
- bibtex: .bib
- chunkedhtml: No specific extension, usually outputs HTML files in chunks.
- commonmark: .md, markdown
- commonmark_x: .md, markdown
- context: .tex
- csljson: .json
- djot: .djot
- docbook: .xml, dbk
- docbook4: .xml, dbk
- docbook5: .xml, dbk
- docx: .docx
- dokuwiki: .doku, txt
- dzslides: .html (generated HTML slides)
- epub: .epub
- epub2: .epub
- epub3: .epub
- fb2: .fb2
- gfm (GitHub-Flavored Markdown): .md
- haddock: .txt
- html: .html, htm
- html4: .html, htm
- html5: .html, htm
- icml (Adobe InCopy): .icml
- ipynb (Jupyter Notebook): .ipynb
- jats: .xml
- jats_archiving: .xml
- jats_articleauthoring: .xml
- jats_publishing: .xml
- jira: .jira, txt
- json: .json
- latex: .tex
- man (manpage): .man, 1, 2, etc. (sections vary)
- markdown: .md, markdown
- markdown_github: .md
- markdown_mmd (MultiMarkdown): .mmd
- markdown_phpextra: .md
- markdown_strict: .md
- markua: .markua
- mediawiki: .wiki, mediawiki
- ms (groff ms): .ms
- muse: .muse
- native: No standard extension (specific to Pandoc's internal format)
- odt (OpenDocument Text): .odt
- opendocument: .odt
- opml: .opml
- org: .org
- plain: .txt
- pptx: .pptx
- revealjs: .html (generated presentation files)
- rst (reStructuredText): .rst
- rtf: .rtf
- s5: .html (HTML slides for S5 presentations)
- slideous: .html
- slidy: .html
- tei: .xml, tei
- texinfo: .texi, texinfo
- textile: .textile
- typst: .typ
- xwiki: .xwiki
- zimwiki: .zim, wiki