ToBoxes[expr]
generates boxes corresponding to the printed form of expr in StandardForm.
ToBoxes[expr,form]
gives the boxes corresponding to output in the specified form.


ToBoxes
ToBoxes[expr]
generates boxes corresponding to the printed form of expr in StandardForm.
ToBoxes[expr,form]
gives the boxes corresponding to output in the specified form.
Examples
open all close allBasic Examples (3)
Box representation of a polynomial:
Box representation of a graphic:
A special function in StandardForm and TraditionalForm:
Scope (8)
Basic Objects (2)
Special Input Forms (4)
Box representations for various Power expressions:
Properties & Relations (5)
ToBoxes evaluates expr, while MakeBoxes does not:
Use ToExpression to interpret boxes:
Use DisplayForm to see how the boxes display:
Use formatting rules added through Format:
Use formatting rules added through MakeBoxes:
See Also
ToString ToExpression MakeBoxes HoldForm DisplayForm StandardForm TraditionalForm Format
Function Repository: StringToBoxes ToCompressedBoxes StringTemplateInput
Tech Notes
Related Guides
History
Introduced in 1996 (3.0)
Text
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.
APA
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: 08-August-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: 08-August-2025]}