> ## Documentation Index
> Fetch the complete documentation index at: https://voltaire.tevm.sh/llms.txt
> Use this file to discover all available pages before exploring further.

# Bytecode.fromHex

> Parse hex string to bytecode with or without 0x prefix

<Card title="Try it Live" icon="play" href="https://playground.tevm.sh?example=primitives/bytecode.ts">
  Run Bytecode examples in the interactive playground
</Card>

<Tabs />

## See Also

* [from](/primitives/bytecode/from) - Universal constructor
* [toHex](/primitives/bytecode/tohex) - Convert back to hex string
