Machine Code to Assembly Disassembler

Disassemble hex or Base64 machine code to assembly free. x86, x64, ARM, ARM64, RISC-V, MIPS, PowerPC, SPARC, 68K - instant, in your browser.

By

Advertisement

Online Disassembler: Turn Machine Code Into Assembly Instantly

This online disassembler converts raw machine code — hex bytes or Base64 — into readable assembly language for eight processor families, without installing anything. Paste a byte string, pick an architecture, and you get an address-by-address listing showing the offset, the raw bytes consumed by each instruction, and the decoded mnemonic with its operands. Everything runs client-side using WebAssembly builds of Capstone (disassembly) and Keystone (assembly), so the bytes you paste never leave your browser. That matters when the “bytes” are a suspicious payload pulled out of an incident, a proprietary firmware image, or a competition artifact you are not allowed to upload anywhere.

Reverse engineers reach for a disassembler whenever they have code but no source: a crash dump with a fault address, a shellcode blob recovered from a packet capture, a firmware ROM with no symbols, or a compiler output they want to sanity check. This tool is aimed at the fast half of that work — “what do these 40 bytes actually do?” — and answers it in a second rather than after a project import.

Supported Architectures and Modes

The architecture selector drives which decoder Capstone uses, and each architecture exposes its own mode list. Picking the wrong mode is the single most common reason a disassembly comes out as garbage, so the pairing matters:

ArchitectureModes availableTypical use
x86 / x86-6416-bit, 32-bit, 64-bitDesktop and server binaries, shellcode, bootloaders (16-bit real mode)
ARM64 (AArch64)64-bitApple Silicon, modern Android, ARM servers
ARM32ARM, Thumb, Cortex-MEmbedded firmware, older Android, microcontrollers
RISC-V32-bit, 64-bitRISC-V SoCs, teaching, open hardware
MIPSMIPS32, MIPS64, microMIPSRouters, set-top boxes, older consoles
PowerPC32-bit, 64-bitEmbedded PPC, legacy Mac binaries, some automotive
SPARCSPARC32, SPARC V9Solaris-era systems and legacy server code
Motorola 68K68000, 68010, 68020, 68030, 68040Retro computing, arcade and console ROMs

For x86 and x86-64 you can additionally choose between Intel and AT&T syntax. Intel syntax writes destination first (mov rbp, rsp); AT&T reverses the operands and prefixes registers with % (mov %rsp, %rbp). If you are cross-checking against objdump output on Linux, AT&T is usually what you want; if you are reading Windows documentation or NASM source, choose Intel. The syntax selector applies to x86 only — the other architectures have a single canonical form.

How to Use the Disassembler

  1. Choose your input format. Toggle between Hex and Base64. Hex input is forgiving: 55 48 89 e5, 5548 89E5, and \x55\x48\x89\xe5-style pastes all normalise. Base64 accepts both standard and URL-safe alphabets and is converted to hex before decoding.
  2. Select the architecture and mode. If you know the file came from a 64-bit Linux binary, pick x86 with 64-bit mode. If you are unsure, try a couple of combinations — a wrong guess produces obviously nonsensical instructions and invalid-byte markers.
  3. Set the base address. The default is 0x0, but entering the real load address (for example 0x401000) makes jump and call targets line up with the addresses in your debugger or crash log, which saves manual arithmetic.
  4. Disassemble. Output is a table of address, raw bytes, mnemonic, and operands. Large inputs are processed in chunks so the page stays responsive.
  5. Work the extra tabs. Statistics, shellcode detection, string extraction, call graph, decompiler, packer detection, and performance analysis all operate on the same decoded listing.

You can also upload a file instead of pasting, save a session for later, and generate a shareable permalink that encodes the bytes and settings in the URL — handy for handing a snippet to a colleague or attaching to a ticket.

Worked Example: An x86-64 Function Prologue

Take the eight bytes 55 48 89 e5 48 83 ec 10 in x86 / 64-bit / Intel syntax. The disassembler produces:

AddressBytesInstructionMeaning
0x000055push rbpSave the caller’s frame pointer
0x000148 89 e5mov rbp, rspEstablish a new frame pointer
0x000448 83 ec 10sub rsp, 0x10Reserve 16 bytes of local stack space

Notice that x86 instructions are variable length — one, three, and four bytes here. That is why a disassembler must start at a correct instruction boundary: begin one byte late and every subsequent decode is wrong until the stream happens to resynchronise. The 48 prefix in the second and third instructions is the REX.W byte that promotes the operation to 64-bit operands; drop it and the same encoding would operate on ebp/esp instead.

A Linux write syscall looks like b8 01 00 00 00 bf 01 00 00 00 48 89 c6 ba 0d 00 00 00 0f 05, decoding to mov eax, 1 / mov edi, 1 / mov rsi, rax / mov edx, 0xd / syscall — the classic “write 13 bytes to stdout” sequence you will meet in almost every shellcode tutorial.

ARM, ARM64, Thumb and RISC-V: Fixed-Width Decoding

Unlike x86, ARM64 and RISC-V (in their base encodings) use fixed-width instructions, which makes decoding far more predictable. The ARM64 prologue fd 7b bf a9 fd 03 00 91 decodes to stp x29, x30, [sp, #-0x10]! followed by mov x29, sp — two 4-byte instructions that push the frame pointer and link register as a pair and then set up the frame. Compare that with the three x86-64 instructions above doing the same job.

ARM32 is the case where the mode selector really bites. The bytes 00 b5 00 af 00 bd only make sense in Thumb mode, where they decode as push {lr} / add r7, sp, #0 / pop {pc} — three 2-byte instructions. Decode the same bytes in ARM mode and you get a single meaningless 4-byte word plus a trailing fragment. Firmware for Cortex-M parts is Thumb-only, so if you are staring at a microcontroller image, start there. The Cortex-M mode additionally enables the M-profile system registers.

RISC-V behaves similarly: 13 01 01 ff is addi sp, sp, -16 and 23 34 11 00 is sd ra, 8(sp) in RV64 — a stack allocation followed by saving the return address. Selecting 32-bit instead of 64-bit changes how the wider load/store mnemonics are printed, so match the mode to the target.

Assembling in the Other Direction: Assembly to Hex

The Assembler tab runs the process in reverse. Type assembly source and it emits the encoded machine code as hex, powered by Keystone compiled to WebAssembly. This is what you want when you are searching for “ARM to hex” or an “ARM converter”: enter mov x0, #1 and get the corresponding ARM64 encoding back. The assembler follows the same architecture, mode, and syntax selection as the disassembler, so an x86-64 build respects your Intel/AT&T choice, and the resulting hex is fed straight back into the input box so you can immediately round-trip it through the disassembler and confirm the encoding is what you intended. Round-tripping is the fastest way to verify a hand-written instruction encoding before dropping it into an exploit, a patch, or a hardware test harness.

Beyond Plain Disassembly

  • Shellcode detection: flags patterns typical of position-independent payloads — syscall sequences, GetPC tricks, suspicious jump chains — and assigns a risk level.
  • Packer and protector detection: scans for known signatures such as UPX and reports the offset where the marker was found, plus unpacking guidance.
  • Entropy and statistics: byte-level Shannon entropy is a quick indicator of compression or encryption — high entropy over a whole blob usually means packed or encrypted data rather than plain code.
  • String extraction: pulls printable ASCII runs out of the byte stream, often the fastest route to URLs, filenames, or command strings.
  • Call graph: builds a graph from the decoded calls and branches, exportable as ASCII, JSON, DOT (for Graphviz), or Mermaid.
  • Decompiler: produces pseudo-C from the disassembly to give you the shape of the control flow at a glance.
  • Performance analysis: summarises the instruction mix so you can spot hot patterns in a short routine.

When you are done here, related work often continues in the hex editor for byte-level edits, the file magic number checker to confirm what a blob actually is, or the malware deobfuscator when the payload arrives wrapped in encoding layers.

What is Machine Code Disassembly?

Machine code disassembly is the process of converting binary machine code (hexadecimal bytes) back into human-readable assembly language instructions. When software is compiled, high-level source code (like C, C++, or Rust) is transformed into machine code—the raw binary instructions that processors execute directly. Disassembly reverses this process, allowing security researchers, reverse engineers, and developers to analyze compiled binaries without access to the original source code.

The disassembly process involves:

  • Instruction Decoding: Interpreting byte sequences as processor instructions based on the target architecture (x86-64, ARM, RISC-V, etc.)
  • Operand Analysis: Identifying registers, memory addresses, and immediate values used by each instruction
  • Syntax Translation: Converting the decoded instruction into assembly syntax (Intel, AT&T, or architecture-specific format)

This tool uses the Capstone disassembly framework, a lightweight and powerful engine that supports multiple architectures and is widely used in professional security tools like IDA Pro, Ghidra, and radare2.

Common Use Cases for Disassembly

Disassemblers are essential tools across multiple domains:

Malware Analysis & Cybersecurity

Security researchers use disassemblers to analyze malicious software, understand attack techniques, and develop detection signatures. By examining the assembly code, analysts can identify shellcode, detect obfuscation techniques, and reverse-engineer malware behavior without executing it.

Reverse Engineering & Software Analysis

When source code is unavailable, disassembly allows developers to understand how proprietary software works, identify security vulnerabilities, or ensure compatibility. This is critical for legacy system maintenance, interoperability research, and vulnerability disclosure.

CTF Challenges & Security Training

Capture The Flag (CTF) competitions frequently include reverse engineering challenges where participants must disassemble binaries to find hidden flags, bypass protection mechanisms, or understand exploitation techniques. Disassembly skills are fundamental for binary exploitation and pwn challenges.

Firmware & Embedded Systems

Firmware reverse engineering requires disassembling compiled code from IoT devices, routers, and embedded systems. This helps identify security flaws in devices that may lack proper security updates or contain hardcoded credentials.

Learning Computer Architecture

Students and developers learning assembly language can use disassemblers to see how compilers translate high-level code into machine instructions, understand optimization techniques, and learn how different CPU architectures handle the same operations.

Understanding Processor Architectures

Different processor architectures use distinct instruction sets, each with unique characteristics:

x86-64 (AMD64/Intel 64)

The most common architecture for desktop and server systems. x86-64 uses variable-length instructions (1-15 bytes), complex instruction set computing (CISC), and supports both Intel and AT&T assembly syntax. It's widely used in Windows, Linux, and macOS systems.

ARM & ARM64 (AArch64)

Dominant in mobile devices, embedded systems, and increasingly in desktop computers (Apple Silicon). ARM uses fixed-length 32-bit instructions (or 16-bit in Thumb mode), reduced instruction set computing (RISC), and is known for power efficiency. ARM64 is the 64-bit evolution with enhanced capabilities.

RISC-V

An open-source instruction set architecture gaining traction in embedded systems, IoT devices, and research. RISC-V emphasizes simplicity, modularity, and extensibility, making it popular for custom processor designs and educational purposes.

MIPS

Historically used in routers, embedded systems, and game consoles (PlayStation). While declining in new designs, MIPS remains important for legacy device analysis and security research.

PowerPC (PPC)

Found in older Apple computers (pre-Intel Macs), gaming consoles (PlayStation 3, Xbox 360), and embedded systems. PowerPC uses a RISC architecture with fixed-length 32-bit instructions.

Each architecture requires different disassembly approaches, as instruction encoding, registers, and calling conventions vary significantly.

Intel vs AT&T Assembly Syntax

x86/x86-64 assembly can be written in two main syntaxes, which differ in instruction ordering and formatting:

Intel Syntax (Default for Windows, IDA Pro)

mov eax, 5          ; destination first, source second
add rax, rbx        ; rax = rax + rbx
mov [rax], ebx      ; store ebx into memory at address rax

Intel syntax is more intuitive for beginners: destination comes first (like x = y in programming), and memory references use brackets without size prefixes.

AT&T Syntax (Default for GCC, Unix tools)

movl $5, %eax       ; source first, destination second
addq %rbx, %rax     ; rax = rax + rbx
movl %ebx, (%rax)   ; store ebx into memory at address rax

AT&T syntax requires percent signs before registers, dollar signs before immediate values, and suffixes indicating operand size (b=byte, w=word, l=long, q=quad).

When to Use Each:

  • Intel syntax: Preferred for Windows reverse engineering, malware analysis, and beginners learning assembly
  • AT&T syntax: Standard for Unix/Linux development, GCC compiler output, and GDB debugger

This tool defaults to Intel syntax but allows switching for compatibility with different tools and workflows.

How This Tool Compares to Professional Disassemblers

Professional reverse engineering tools offer different capabilities and trade-offs:

IDA Pro (Commercial, ~$1,800-$3,500)

The industry standard for professional reverse engineering. IDA Pro offers advanced features like cross-references, function recognition, automatic commenting, and the Hex-Rays decompiler (converts assembly back to C-like pseudocode). It excels at analyzing large, complex binaries and provides extensive plugin support.

Ghidra (Free, Open-Source)

Developed by the NSA and released publicly in 2019, Ghidra rivals IDA Pro in functionality while being completely free. It includes a powerful decompiler, collaborative analysis features, and strong multi-architecture support. Ghidra is ideal for large-scale analysis and team collaboration.

radare2/Cutter (Free, Open-Source)

A command-line reverse engineering framework with a GUI frontend (Cutter). Radare2 emphasizes scriptability, debugging capabilities, and supports the widest range of architectures. It's preferred for dynamic analysis, embedded systems, and users comfortable with terminal workflows.

Binary Ninja (Commercial, ~$300-$3,000)

A modern disassembler known for its clean interface, powerful API, and intermediate language (BNIL) for analysis. Binary Ninja is popular among CTF players and security researchers who value customization and scripting.

This Tool: Machine Code Disassembler

Our tool focuses on quick, online disassembly without installation requirements. It's ideal for:

  • Analyzing shellcode snippets during CTF challenges
  • Quick instruction lookups while reading security research
  • Learning assembly language interactively
  • Mobile/tablet access when desktop tools aren't available
  • Privacy-conscious analysis (100% client-side, no server uploads)

While professional tools offer deeper analysis capabilities (control flow graphs, function analysis, decompilation), this online disassembler provides instant access for focused, instruction-level analysis without the complexity or cost of full reverse engineering suites.

Best Practices for Binary Analysis

Follow these guidelines for effective disassembly and reverse engineering:

1. Verify Architecture and Endianness

Always confirm the target architecture before disassembly. x86-64 uses little-endian byte ordering, while some ARM and MIPS systems use big-endian. Incorrect architecture selection produces nonsensical output.

2. Start with Entry Points

For executable files, begin disassembly at the program entry point (often found in PE/ELF headers). For shellcode, identify the starting instruction carefully—shellcode often includes NOP sleds or position-independent code.

3. Identify Code vs Data

Not all bytes in a binary are instructions. Compilers mix code with embedded data (strings, constants, jump tables). If disassembly produces strange instructions, you may be looking at data regions.

4. Use Context from Other Tools

Combine disassembly with other analysis techniques:

  • Strings extraction to find embedded text
  • Entropy analysis to detect encryption/compression
  • File format analysis (PE/ELF headers) for structural information
  • Dynamic analysis (debugging, tracing) to confirm static analysis findings

5. Document Your Findings

Professional reverse engineers maintain detailed notes about:

  • Function purposes and naming conventions
  • Register usage patterns
  • Calling conventions observed
  • Interesting code patterns or security vulnerabilities

6. Respect Legal and Ethical Boundaries

Only reverse engineer software where you have legal authorization:

  • Software you own or have explicit permission to analyze
  • CTF challenges and educational exercises
  • Security research with responsible disclosure
  • Malware samples in isolated research environments

Unauthorized reverse engineering may violate software licenses, anti-circumvention laws (DMCA), or computer fraud statutes.

Frequently Asked Questions

Is this a free online disassembler?+

Yes. There is no account, no upload limit tied to a plan, and no server-side processing. The Capstone and Keystone WebAssembly modules load into your browser and do all the decoding locally.

Which architectures does it disassemble?+

x86 and x86-64 (16-, 32- and 64-bit), ARM64/AArch64, ARM32 including Thumb and Cortex-M, RISC-V (32- and 64-bit), MIPS (MIPS32, MIPS64, microMIPS), PowerPC (32- and 64-bit), SPARC (SPARC32 and V9), and Motorola 68K (68000 through 68040).

Can I use this as an online Ghidra alternative?+

For quick byte-level questions, yes — and it needs no install. But it is not a full replacement. Ghidra and IDA Pro parse whole executables, recover functions and types across an entire binary, resolve symbols and imports, and give you a persistent, annotatable project database. This tool disassembles a byte string you supply, with pseudo-C and call-graph views on top. Use it for snippets, shellcode, crash-dump bytes, and encoding checks; use a full suite for whole-binary reverse engineering.

My output is nonsense. What went wrong?+

Almost always the architecture or mode is wrong, or the start offset is not an instruction boundary. Try the other CPU modes for your architecture (particularly ARM vs Thumb), and try shifting the input by one or two bytes. Very high entropy with no valid instructions usually means the data is compressed or encrypted, not code.

What is the difference between a disassembler and a decompiler?+

A disassembler maps machine code one-to-one onto assembly mnemonics — a lossless, mechanical translation. A decompiler goes further and tries to reconstruct higher-level source such as C, which involves inference and is inherently approximate. This tool does both, but treat the disassembly as ground truth and the pseudo-C as a reading aid.

Does the tool support AT&T syntax?+

Yes, for x86 and x86-64. Switch the syntax selector to AT&T to get GAS-style output with reversed operands and %-prefixed registers, matching what objdump prints by default on Linux.

Can I convert assembly back into hex bytes?+

Yes. The Assembler tab takes assembly source and emits machine code hex for the selected architecture and mode, and pushes the result into the disassembler input so you can verify the encoding immediately.

Can I disassemble a whole executable?+

You can upload a file and disassemble its bytes, but the tool decodes a linear byte stream — it does not parse PE, ELF, or Mach-O headers to find the code sections for you. For a full binary, extract the section you care about first, or set the base address to the section’s virtual address so branch targets read correctly.

Is my machine code sent to a server?+

No. Disassembly, assembly, string extraction, entropy, and pattern detection all run in your browser via WebAssembly. That makes the tool usable on samples you are contractually or legally prohibited from uploading.

What is a disassembler?+

A disassembler converts machine code (binary instructions) back into assembly language, the human-readable representation of CPU instructions. Unlike decompilers which attempt to produce high-level source code, disassemblers produce low-level assembly that directly corresponds to the machine code bytes.

Disassemblers are essential for reverse engineering, malware analysis, debugging compiled programs, and understanding how software works at the lowest level. They help security researchers identify vulnerabilities, analyze suspicious files, and verify that compiled code matches its intended behavior.

Learn more: Read our comprehensive guide Disassemblers Explained: Your Complete Guide to Assembly-Level Reverse Engineering to understand how disassemblers work, compare professional tools, and explore career opportunities.

Related tools

This tool is provided for informational and educational purposes only. While we strive for accuracy, we make no warranties about the completeness or reliability of results. Results are based on the information you enter and do not constitute a security audit, a formal compliance assessment, or legal advice, and they do not establish that any system or organisation meets a given standard. Coverage of a framework may be partial — check what the tool states it assesses. For anything you intend to rely on, consult a qualified assessor.