ToBoxes
✖
ToBoxes
Examples
open allclose allBasic Examples (3)Summary of the most common use cases
Box representation of a polynomial:

https://wolfram.com/xid/0cqy5mv2-bajktq


https://wolfram.com/xid/0cqy5mv2-yk3y6

Box representation of a graphic:

https://wolfram.com/xid/0cqy5mv2-9c4n3

A special function in StandardForm and TraditionalForm:

https://wolfram.com/xid/0cqy5mv2-dppn9w


https://wolfram.com/xid/0cqy5mv2-b0a0o6

Scope (8)Survey of the scope of standard use cases
Basic Objects (2)
Integer, Rational, Real, and Complex numbers:

https://wolfram.com/xid/0cqy5mv2-i75qpv

Arbitrary-precision Real and Complex numbers:

https://wolfram.com/xid/0cqy5mv2-652ag


https://wolfram.com/xid/0cqy5mv2-bf2gka

Characters and strings of characters:

https://wolfram.com/xid/0cqy5mv2-29qm2

Control characters for strings:

https://wolfram.com/xid/0cqy5mv2-3woc0

Special Input Forms (4)
Box representations for various Power expressions:

https://wolfram.com/xid/0cqy5mv2-pcg7g


https://wolfram.com/xid/0cqy5mv2-c7uctz


https://wolfram.com/xid/0cqy5mv2-e1jvdo


https://wolfram.com/xid/0cqy5mv2-efjkce


https://wolfram.com/xid/0cqy5mv2-dl5cpv


https://wolfram.com/xid/0cqy5mv2-ejusjr

Inputs with subscripts, superscripts, etc.:

https://wolfram.com/xid/0cqy5mv2-b1e7oh

Special Output Forms (2)
Some objects use a special output representation with interpretation:

https://wolfram.com/xid/0cqy5mv2-ll6e3


https://wolfram.com/xid/0cqy5mv2-hto019

Some objects use an elided output representation:

https://wolfram.com/xid/0cqy5mv2-c9r1b7


https://wolfram.com/xid/0cqy5mv2-22dbz


https://wolfram.com/xid/0cqy5mv2-dnso2j


https://wolfram.com/xid/0cqy5mv2-oht4s

Properties & Relations (5)Properties of the function, and connections to other functions
ToBoxes evaluates expr, while MakeBoxes does not:

https://wolfram.com/xid/0cqy5mv2-v65hi


https://wolfram.com/xid/0cqy5mv2-j9yqkw

Use ToExpression to interpret boxes:

https://wolfram.com/xid/0cqy5mv2-fq1fvd


https://wolfram.com/xid/0cqy5mv2-b07zzf

Use DisplayForm to see how the boxes display:

https://wolfram.com/xid/0cqy5mv2-epiuvz


https://wolfram.com/xid/0cqy5mv2-1l0z6

Use formatting rules added through Format:

https://wolfram.com/xid/0cqy5mv2-nvqw04


https://wolfram.com/xid/0cqy5mv2-iccb0a

https://wolfram.com/xid/0cqy5mv2-cwe5mx

Use formatting rules added through MakeBoxes:

https://wolfram.com/xid/0cqy5mv2-cu9ddt


https://wolfram.com/xid/0cqy5mv2-yq1c0

https://wolfram.com/xid/0cqy5mv2-gx9gdy

Wolfram Research (1996), ToBoxes, Wolfram Language function, https://reference.wolfram.com/language/ref/ToBoxes.html.
Text
Wolfram Research (1996), ToBoxes, Wolfram Language function, https://reference.wolfram.com/language/ref/ToBoxes.html.
Wolfram Research (1996), ToBoxes, Wolfram Language function, https://reference.wolfram.com/language/ref/ToBoxes.html.
CMS
Wolfram Language. 1996. "ToBoxes." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ToBoxes.html.
Wolfram Language. 1996. "ToBoxes." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/ToBoxes.html.
APA
Wolfram Language. (1996). ToBoxes. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ToBoxes.html
Wolfram Language. (1996). ToBoxes. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/ToBoxes.html
BibTeX
@misc{reference.wolfram_2025_toboxes, author="Wolfram Research", title="{ToBoxes}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/ToBoxes.html}", note=[Accessed: 09-April-2025
]}
BibLaTeX
@online{reference.wolfram_2025_toboxes, organization={Wolfram Research}, title={ToBoxes}, year={1996}, url={https://reference.wolfram.com/language/ref/ToBoxes.html}, note=[Accessed: 09-April-2025
]}