Iconize
✖
Iconize
Details and Options

- The formatted output of Iconize[expr] will evaluate to expr when it is supplied as input.
- It is common to evaluate Iconize[expr] using Evaluate in Place.
- On many platforms, an expression selected in a notebook can be iconized using the Iconize menu item in the context menu for the selection.
- An iconized form can be converted to standard form using Convert to StandardForm.
- With the default setting Method->Automatic, the expression is written as is into the notebook.
- With the settings Method->Compress and Method->BinarySerialize, the respective functions are used to compress the expression prior to writing it into the notebook.
Examples
open allclose allBasic Examples (2)Summary of the most common use cases
Create an icon that holds the numbers 1 through 100:

https://wolfram.com/xid/0enze6i36-mefqe9

The icon evaluates to the list when used as input:

https://wolfram.com/xid/0enze6i36-uyg2ep


https://wolfram.com/xid/0enze6i36-luqqc5

The icon can also be used as input:

https://wolfram.com/xid/0enze6i36-p56qru

Scope (5)Survey of the scope of standard use cases

https://wolfram.com/xid/0enze6i36-h8ma5i


https://wolfram.com/xid/0enze6i36-vd8u22


https://wolfram.com/xid/0enze6i36-oyl16e


https://wolfram.com/xid/0enze6i36-lylwd6


https://wolfram.com/xid/0enze6i36-2bkegg

Use the icons in an expression:

https://wolfram.com/xid/0enze6i36-51yct0

Iconize an unevaluated expression:

https://wolfram.com/xid/0enze6i36-n440ty

The icon contains the unevaluated expression:

https://wolfram.com/xid/0enze6i36-sjaiyj

Outside of a holding construct, normal evaluation occurs:

https://wolfram.com/xid/0enze6i36-n10g6p

Options (1)Common values & functionality for each option
Method (1)

https://wolfram.com/xid/0enze6i36-qobm9h
Iconize the data, storing a reference to the output cell for later:

https://wolfram.com/xid/0enze6i36-e324h

Iconize the data but compress it using Compress:

https://wolfram.com/xid/0enze6i36-u8s52d

Iconize the data but compress it using BinarySerialize:

https://wolfram.com/xid/0enze6i36-lukk1q

Verify that the sizes of the second and third icons in the notebook are indeed smaller:

https://wolfram.com/xid/0enze6i36-1ec3ir

Properties & Relations (3)Properties of the function, and connections to other functions
Iconize evaluates its argument:

https://wolfram.com/xid/0enze6i36-c34cop

Interpretation allows you to specify an arbitrary appearance of an expression:

https://wolfram.com/xid/0enze6i36-ezpc2t

The expression is not evaluated by default:

https://wolfram.com/xid/0enze6i36-wn471r

Iconize has a unique appearance and evaluates its argument by default:

https://wolfram.com/xid/0enze6i36-byxqj9


https://wolfram.com/xid/0enze6i36-dboc27

Possible Issues (2)Common pitfalls and unexpected behavior
The typeset output produced by Iconize is not the same as the result of evaluation:

https://wolfram.com/xid/0enze6i36-ke5zpb


https://wolfram.com/xid/0enze6i36-f7skap

The typeset output evaluates to the first argument of the result:

https://wolfram.com/xid/0enze6i36-ba86ee

When using compression, the iconized form may not be fully equivalent to the original expression:

https://wolfram.com/xid/0enze6i36-c7d3rk


https://wolfram.com/xid/0enze6i36-ricg42

When used inside functions that hold their arguments, the altered expression can be seen:

https://wolfram.com/xid/0enze6i36-vuy0ij

The original expression is recovered when the iconized form fully evaluates:

https://wolfram.com/xid/0enze6i36-xdzas9

Wolfram Research (2018), Iconize, Wolfram Language function, https://reference.wolfram.com/language/ref/Iconize.html (updated 2019).
Text
Wolfram Research (2018), Iconize, Wolfram Language function, https://reference.wolfram.com/language/ref/Iconize.html (updated 2019).
Wolfram Research (2018), Iconize, Wolfram Language function, https://reference.wolfram.com/language/ref/Iconize.html (updated 2019).
CMS
Wolfram Language. 2018. "Iconize." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/Iconize.html.
Wolfram Language. 2018. "Iconize." Wolfram Language & System Documentation Center. Wolfram Research. Last Modified 2019. https://reference.wolfram.com/language/ref/Iconize.html.
APA
Wolfram Language. (2018). Iconize. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Iconize.html
Wolfram Language. (2018). Iconize. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/Iconize.html
BibTeX
@misc{reference.wolfram_2025_iconize, author="Wolfram Research", title="{Iconize}", year="2019", howpublished="\url{https://reference.wolfram.com/language/ref/Iconize.html}", note=[Accessed: 29-March-2025
]}
BibLaTeX
@online{reference.wolfram_2025_iconize, organization={Wolfram Research}, title={Iconize}, year={2019}, url={https://reference.wolfram.com/language/ref/Iconize.html}, note=[Accessed: 29-March-2025
]}