ImportString["data","format"]
imports data in the specified format from a string.
ImportString["data",elements]
imports the specified elements.
ImportString["data"]
attempts to determine the format of the string from its contents.


ImportString
Listing of Formats »ImportString["data","format"]
imports data in the specified format from a string.
ImportString["data",elements]
imports the specified elements.
ImportString["data"]
attempts to determine the format of the string from its contents.
Details

- ImportString imports data in the specified format from a string.
- ImportString handles a large number of formats, each typically with many different possible elements. The possible formats are given in the list $ImportFormats, and in the "Listing of All Formats".
- ImportString works just like Import, with the same element specifications and options.
Examples
open all close allBasic Examples (2)
Scope (1)
Import a string by automatically inferring its format:
Use StringFormat to infer the format used by ImportString:
History
Introduced in 1999 (4.0) | Updated in 2003 (5.0) ▪ 2004 (5.1) ▪ 2007 (6.0)
Text
Wolfram Research (1999), ImportString, Wolfram Language function, https://reference.wolfram.com/language/ref/ImportString.html (updated 2007).
CMS
Wolfram Language. 1999. "ImportString." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2007. https://reference.wolfram.com/language/ref/ImportString.html.
APA
Wolfram Language. (1999). ImportString. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ImportString.html
BibTeX
@misc{reference.wolfram_2025_importstring, author="Wolfram Research", title="{ImportString}", year="2007", howpublished="\url{https://reference.wolfram.com/language/ref/ImportString.html}", note=[Accessed: 08-August-2025]}
BibLaTeX
@online{reference.wolfram_2025_importstring, organization={Wolfram Research}, title={ImportString}, year={2007}, url={https://reference.wolfram.com/language/ref/ImportString.html}, note=[Accessed: 08-August-2025]}