MakeExpression
✖
MakeExpression
is the low‐level function used in Wolfram System sessions to construct expressions from boxes.
Details

- MakeExpression returns its result wrapped in HoldComplete.
- form can be StandardForm, TraditionalForm, or other forms for which interpretation rules have been defined.
- You can give definitions for MakeExpression[expr,form] to specify your own rules for how boxes should be converted to expressions.
- MakeExpression is not automatically called on the results it generates. This means that explicit MakeExpression calls must typically be inserted into definitions for MakeExpression.
- MakeExpression is used whenever boxes are supplied as input to the Wolfram Language.
- The boxes that are fed to MakeExpression are constructed from textual input by forming tokens, then grouping these according to standard Wolfram Language operator precedence rules, stripping out spacing characters. StyleBox and other objects not intended for interpretation are removed. »
- Definitions you give for MakeExpression will override built‐in Wolfram Language rules for processing input.
- Giving input prefaced by \! makes the Wolfram Language effectively perform MakeExpression.
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
Convert boxes to an expression using StandardForm rules:

https://wolfram.com/xid/0i1kcipoy-j53

Scope (2)Survey of the scope of standard use cases
Convert boxes to an expression using TraditionalForm rules:

https://wolfram.com/xid/0i1kcipoy-dnh2f7

Convert the same boxes using StandardForm rules:

https://wolfram.com/xid/0i1kcipoy-bu3d7v

The display of a box structure with style information:

https://wolfram.com/xid/0i1kcipoy-bv187c

MakeExpression removes the style information:

https://wolfram.com/xid/0i1kcipoy-iht0kg

Properties & Relations (2)Properties of the function, and connections to other functions
MakeExpression does not evaluate the expression, while ToExpression does:

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


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

Display an InterpretationBox:

https://wolfram.com/xid/0i1kcipoy-b4ov11

The expression is the second argument of the InterpretationBox:

https://wolfram.com/xid/0i1kcipoy-j6ylmq

Possible Issues (2)Common pitfalls and unexpected behavior
Input containing invalid or incomplete syntax results in ErrorBox expressions:

https://wolfram.com/xid/0i1kcipoy-nlhpf9


https://wolfram.com/xid/0i1kcipoy-b8h6om

The presence of some whitespace can prevent MakeExpression from interpreting a box structure:

https://wolfram.com/xid/0i1kcipoy-ekuyxu

Use StripBoxes to strip whitespace and other boxes that interfere with interpretation:

https://wolfram.com/xid/0i1kcipoy-e6mg28

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