WOLFRAM

Enable JavaScript to interact with content and submit forms on Wolfram websites. Learn how
Wolfram Language & System Documentation Center

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
Details and Options Details and Options
Examples  
Basic Examples  
Scope  
Possible Issues  
See Also
Tech Notes
Related Guides
Related Links
History
Cite this Page

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

Examples

open all close all

Basic Examples  (2)

Import a string by automatically inferring its format:

Import a string as a table:

Scope  (1)

Import a string by automatically inferring its format:

Use StringFormat to infer the format used by ImportString :

Explicitly specify the format:

Import as XML:

List all available elements:

Import a specific element:

Import with an option:

Possible Issues  (1)

Automatic format detection may not give the desired result:

Specify the intended format:

Give the elements available for a string in specified format:

Import an available element:

History

Introduced in 1999 (4.0) | Updated in 2003 (5.0) 2004 (5.1) 2007 (6.0)

Wolfram Research (1999), ImportString, Wolfram Language function, https://reference.wolfram.com/language/ref/ImportString.html (updated 2007).

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: 17-November-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: 17-November-2025]}

Top [フレーム]

AltStyle によって変換されたページ (->オリジナル) /