SymbolName[symbol]
gives the name of the specified symbol.
SymbolName
SymbolName[symbol]
gives the name of the specified symbol.
Details
- SymbolName evaluates its input. »
- SymbolName always returns a string.
Examples
open all close allBasic Examples (1)
Properties & Relations (3)
Symbol and SymbolName are inverses of each other:
Symbol[SymbolName[x17]]SymbolName[Symbol["y32"]]//InputFormMany functions of symbols also accept symbol names as arguments:
Attributes["Pi"]SymbolName always gives the short name, without any context:
SymbolName /@ {x, a`x, b`x}//InputFormToString takes the settings of $Context and $ContextPath into account:
ToString /@ {x, a`x, b`x}//InputFormPossible Issues (1)
SymbolName evaluates its input:
x = 5;
SymbolName[x]SymbolName[Unevaluated[x]]See Also
Tech Notes
Related Guides
History
Introduced in 1996 (3.0)
Text
Wolfram Research (1996), SymbolName, Wolfram Language function, https://reference.wolfram.com/language/ref/SymbolName.html.
CMS
Wolfram Language. 1996. "SymbolName." Wolfram Language & System Documentation Center. Wolfram Research. https://reference.wolfram.com/language/ref/SymbolName.html.
APA
Wolfram Language. (1996). SymbolName. Wolfram Language & System Documentation Center. Retrieved from https://reference.wolfram.com/language/ref/SymbolName.html
BibTeX
@misc{reference.wolfram_2026_symbolname, author="Wolfram Research", title="{SymbolName}", year="1996", howpublished="\url{https://reference.wolfram.com/language/ref/SymbolName.html}", note=[Accessed: 13-June-2026]}
BibLaTeX
@online{reference.wolfram_2026_symbolname, organization={Wolfram Research}, title={SymbolName}, year={1996}, url={https://reference.wolfram.com/language/ref/SymbolName.html}, note=[Accessed: 13-June-2026]}