Online Assembly Compiler
Assembly language provides direct control over CPU instructions. Run NASM assembly code instantly in your browser.
; Online NASM Assembly compiler
; Write Assembly code in this online editor and run it
section .data
msg db "Hello, Tutorsbot!", 10
section .text
global _start
_start:
mov rax, 1
mov rdi, 1
mov rsi, msg
mov rdx, 17
syscall
mov rax, 60
xor rdi, rdi
syscall
Assembly language provides direct control over CPU instructions. Run NASM assembly code instantly in your browser.
What is NASM Assembly?
NASM (Netwide Assembler) is a popular x86/x86_64 assembler for Linux and Windows, with syntax that balances readability and direct access to CPU instructions. "Assembly" on this page means NASM-flavoured x86_64 — the same dialect taught in OS-development courses and used in CTF reverse-engineering challenges.
Why run assembly in the browser
Assembling and linking a NASM snippet by hand requires nasm, ld, and a Linux sandbox — a heavyweight setup for a five-instruction experiment. A browser sandbox backed by our execution platform lets you assemble a snippet, dump machine code to stdout, and observe the program's exit code without touching a toolchain.
Common assembly tasks
Operating-system development (bootloaders, kernel entry points, context switches), reverse-engineering Capture-The-Flag challenges, performance-critical inner loops, embedded firmware for resource-constrained microcontrollers, and security research (ROP chains, shellcode, format-string exploits). The sandbox runs NASM 2.15, links to ELF64, and invokes the program via direct Linux syscalls.
Getting started with NASM 2.15
The default snippet exits with code 0 using the sys_exit syscall. Try replacing the mov rax, 60 with mov rax, 1 to switch to sys_write, or modify the mov rdi, rdi line to change the exit code. The highlighter recognises section .text, section .data, labels, the mov/syscall/int opcodes, and x86_64 register names.
Why use the Assembly online compiler?
- NASM 2.15
- x86_64 assembly
- Low-level programming
- Direct CPU control
Frequently Asked Questions
- Is the Assembly online compiler free?
- Yes — Tutorsbot's Assembly compiler is completely free. No account required, no installation, and no usage limits.
- Do I need to install Assembly?
- No. The Assembly compiler runs entirely in your browser. No runtime, no SDK, no PATH configuration. Open the page and start coding.
- Is my Assembly code saved between sessions?
- Yes — your code autosaves to your browser's local storage so you can resume where you left off. You can also generate a shareable URL.
- Can I share Assembly code with others?
- Yes. Click the Share button to copy a URL that encodes your script. Anyone with the link can open and run it instantly — no account required on their end.
- Is the Assembly compiler safe to use?
- Absolutely. Every program runs in an isolated sandbox. Your local system is never exposed to the executed code, and nothing is persisted after the execution window.