Components All New MacOS Windows Linux iOS
Examples Mac & Win Server Client Guides Statistic FMM Blog Deprecated Old


Returns file extension for given mime type.

Component Version macOS Windows Linux Server iOS SDK
Text 5.4 ✅ Yes ✅ Yes ✅ Yes ✅ Yes ✅ Yes
MBS( "Text.MimeTypeToFileExtension"; MimeType )   More


Parameter Description Example
MimeType The mime type to lookup. "application/pdf"


Returns text or error.


Returns file extension for given mime type.
Extension is returned with dot prefix.

Please report any missing file extensions in our lookup table, so we can add more.
See also Text.FileExtensionToMimeType.


Checks for PDF:

MBS( "Text.MimeTypeToFileExtension"; "application/pdf" )

Example result: .pdf

See also

Blog Entries

This function is free to use.

Created 2nd October 2015, last changed 11st December 2016

Text.MergeFields - Text.RTFToText