ExportForm[expr,"fmt"]
specifies that expr should be exported in the specified format in functions like CloudDeploy and in external results from APIFunction and FormFunction.
ExportForm[expr,{"fmt","type"}]
specifies that when expr is exported, it should be tagged as having the specified MIME type.


ExportForm
ExportForm[expr,"fmt"]
specifies that expr should be exported in the specified format in functions like CloudDeploy and in external results from APIFunction and FormFunction.
ExportForm[expr,{"fmt","type"}]
specifies that when expr is exported, it should be tagged as having the specified MIME type.
Details

- All formats supported by Export can be specified in ExportForm.
- Common cases include:
-
"HTML" pure static HTML "NB" interactive notebook "GIF","JPEG","PNG",… GIF, JPEG, PNG, ... image "Text" plain text (OutputForm) "String" single string without line breaks "WL" Wolfram Language input "JSON" JSON representation of an association or list of rules - The following additional formats are also supported:
-
"HTMLThemed" static HTML with built-in theme "HTMLPaneled" HTML content in a panel "CloudCDF" CDF with interactive components in the cloud "CloudCDFElement" embeddable interactive CDF element in the cloud - The format None specifies that expr should be passed through without change.
- ExportForm supports the same options as Export, including ImageFormattingWidth and ImageSize, for appropriate formats.
- The form ExportForm[…,{"fmt","type"}] can be used to set a different MIME type from the one that would be the default for format "fmt".
Examples
open all close allRelated Workflows
- Deploy an Animation to the Web ▪
- Put an Image on the Web ▪
- Put a Downloadable File in the Cloud
Text
Wolfram Research (2014), ExportForm, Wolfram Language function, https://reference.wolfram.com/language/ref/ExportForm.html (updated 2015).
CMS
Wolfram Language. 2014. "ExportForm." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2015. https://reference.wolfram.com/language/ref/ExportForm.html.
APA
Wolfram Language. (2014). ExportForm. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ExportForm.html
BibTeX
@misc{reference.wolfram_2025_exportform, author="Wolfram Research", title="{ExportForm}", year="2015", howpublished="\url{https://reference.wolfram.com/language/ref/ExportForm.html}", note=[Accessed: 11-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_exportform, organization={Wolfram Research}, title={ExportForm}, year={2015}, url={https://reference.wolfram.com/language/ref/ExportForm.html}, note=[Accessed: 11-August-2025]}