EMULATOR DATABASE
v86
v86 is an open-source x86 PC emulator that runs in modern web browsers (JavaScript + WebAssembly). It can boot disk images of MS‑DOS, FreeDOS and a range of older x86 operating systems and demo images from the project's examples.
Download Tutorials & guidesSign in to download. Files are hosted by the emulator project.

Browse games in Gamebase for DOS, Windows 16-bit.
About v86
Run legacy x86 operating systems and software in a browser without installing a native emulator; useful for demos, quick testing of disk images, education, and embedding a PC environment into web pages.
Browser-hosted emulation of MS‑DOS/FreeDOS and other small x86 OS images; embedding an emulated PC into web pages or prototypes where convenience and portability are more important than perfect compatibility or performance.
The people behind v86 / history
v86 began as a JavaScript x86 emulator that later added WebAssembly components to improve performance. The primary repository used here is maintained at copy/v86 on GitHub and is published for browser use via the copy.sh demo site. The project and its forks have been actively discussed and updated on GitHub; releases and prebuilt assets (JavaScript/WASM) are published on the repository's releases page. The codebase provides examples, a small set of BIOS/firmware files in-tree, and helper tools for creating filesystem images. Because the project runs in the browser it is convenient for web demos, but it is not a drop-in replacement for high-compatibility native PC emulators when running complex Windows titles or modern software.
Screenshots


Tutorials & guides
v86 setup guide
Setup note: This guide explains how to run v86 from the official releases or build it from source, how to supply an MS‑DOS/Windows disk image, where to place BIOS/firmware files the emulator expects, and practical tips for embedding v86 in a web page.
- Get official release files or clone the repository: Preferred: download prebuilt assets (libv86.js / v86.wasm / optional v86_all.js) from the project's GitHub releases page. Alternative: clone the repository (github.com/copy/v86) to build locally if you need custom builds or to modify examples.
- Required browser environment and files: Use a modern browser with WebAssembly support and necessary APIs (Workers, WebAssembly.Memory). You will need one or more disk images (ISO or floppy/hard image files) and the small BIOS/firmware blobs found in the repository's bios directory if you are running some OS images that reference them. The repository/documentation indicates which images require which BIOS files.
- Running the demo (quick start): If you downloaded the release artifacts, copy libv86.js and v86.wasm (or v86_all.js) and an example HTML file (examples/basic.html or the project's demo page) to a web server. The demo HTML shows how to instantiate V86Starter / V86 with a configuration object specifying the memory size, initial disk image URLs, and optional filesystem JSON. For a quick test, use the official demo at copy.sh/v86 which hosts prepared images and demonstrates configuration options.
- Supplying MS‑DOS or Windows images: Provide MS‑DOS or FreeDOS floppy or hard disk images (raw .img files) or ISO files via URLs in the emulator configuration. Do not expect commercial Windows installations to run reliably — v86 can run some early Windows versions in example images, but compatibility varies. The project maintains a separate images repository and documentation listing sample images; use those or your own images if you hold legal rights to them.
- Embedding v86 in a web page: Use the V86Starter or V86 constructor shown in examples/basic.html. Configure screen_container, boot_order, bios URLs, and filesystem JSON when instantiating. Serve v86.wasm and libv86.js from the same origin or ensure CORS headers are correct. The repository examples show how to wire keyboard and clipboard integration and how to load removable images on the fly.
- Building from source (when needed): If you need to build: clone the GitHub repository, install the documented build dependencies (node/npm and build tools described in the README), then run the provided make/npm scripts (for example, make all or npm build) to produce build/v86.wasm and build/v86_all.js. The README and TypeScript declaration file describe available build and runtime options.
- Practical tips and limitations: Performance is good for many small OS images but will not match native emulators for heavy workloads. Some BIOSes, firmware files, or Windows-specific requirements may be missing; consult the repository's bios folder and docs/windows-nt.md for notes about images that need extra configuration. For embedding on public sites, prefer the release artifacts rather than building on the fly in production.
Software reminder: v86 does not include commercial game binaries, Windows installers, or other copyrighted images. You must supply any OS or game images you intend to run and ensure you have legal rights to use them.
Additional information
What v86 supports
- MS‑DOS (disk images, FreeDOS)
- Various lightweight x86 OS images (examples provided in project images repo)
- Runs in web browsers on desktop and mobile that support WebAssembly and required APIs
- Node.js (partial support via repository examples and builds)
READMEs & documentation
- Official project repository (copy/v86) — Readme, source and examples
- Project demo and documentation (copy.sh/v86)
v86 official project README
[](https://gitter.im/copy/v86) or #v86 on [irc.libera.chat](https://libera.chat/)
v86 emulates an x86-compatible CPU and hardware. Machine code is translated to
WebAssembly modules at runtime in order to achieve decent performance. Here's a
list of emulated hardware:
- An x86-compatible CPU. The instruction set is around Pentium 4 level,
including full SSE3 support. Some features are missing, in particular:
- Task gates, far calls in protected mode
- Some 16 bit protected mode features
- Single stepping (trap flag, debug registers)
- Some exceptions, especially floating point and SSE
- Multicore
- 64-bit extensions
- A floating point unit (FPU). Calculations are done using the Berkeley
SoftFloat library and therefore should be precise (but slow). Trigonometric
and log functions are emulated using 64-bit floats and may be less precise.
Not all FPU exceptions are supported.
- A floppy disk controller (8272A).
- An 8042 Keyboard Controller, PS2. With mouse support.
- An 8254 Programmable Interval Timer (PIT).
- An 8259 Programmable Interrupt Controller (PIC).
- Partial APIC support.
- A CMOS Real Time Clock (RTC).
- A generic VGA card with SVGA support and Bochs VBE Extensions.
- A PCI bus. This one is partly incomplete and not used by every device.
- An IDE disk controller.
- A built-in ISO 9660 CD-ROM generator with Joliet support.
- An NE2000 (RTL8390) PCI network card.
- Various virtio devices: Filesystem, network and balloon.
- A SoundBlaster 16 sound card.
- A hayes-compatible dial-up Modem.
## Demos
[9front](https://copy.sh/v86/?profile=9front) —
[Arch Linux](https://copy.sh/v86/?profile=archlinux) —
[Android-x86 1.6-r2](https://copy.sh/v86?profile=android) —
[Android-x86 4.4-r2](https://copy.sh/v86?profile=android4) —
[BasicLinux](https://copy.sh/v86/?profile=basiclinux) —
[Buildroot Linux](https://copy.sh/v86/?profile=buildroot) —
[Damn Small Linux](https://copy.sh/v86/?profile=dsl) —
[ELKS](https://copy.sh/v86/?profile=elks) —
[FreeDOS](https://copy.sh/v86/?profile=freedos) —
[FreeBSD](https://copy.sh/v86/?profile=freebsd) —
[FiwixOS](https://copy.sh/v86/?profile=fiwix) —
[Haiku](https://copy.sh/v86/?profile=haiku) —
[SkiffOS](https://copy.sh/v86/?profile=copy/skiffos) —
[ReactOS](https://copy.sh/v86/?profile=reactos) —
[Windows 2000](https://copy.sh/v86/?profile=windows2000) —
[Windows 98](https://copy.sh/v86/?profile=windows98) —
[Windows 95](https://copy.sh/v86/?profile=windows95) —
[Windows 1.01](https://copy.sh/v86/?profile=windows1) —
[MS-DOS 6.22](https://copy.sh/v86/?profile=msdos) —
[OpenBSD](https://copy.sh/v86/?profile=openbsd) —
[Oberon](https://copy.sh/v86/?profile=oberon) —
[KolibriOS](https://copy.sh/v86/?profile=kolibrios) —
[SkiftOS](https://copy.sh/v86?profile=skift) —
[QNX](https://copy.sh/v86/?profile=qnx)
## Documentation
[How it works](docs/how-it-works.md) —
[Networking](docs/networking.md) —
[Dial-up modem networking](docs/modem.md) —
[Alpine Linux guest setup](tools/docker/alpine/) —
[Arch Linux guest setup](docs/archlinux.md) —
[Debian with xfce guest setup](tools/docker/debian/) —
[MS-DOS/FreeDOS guest setup](docs/dos.md) —
[Windows 3.1x guest setup](docs/windows-31x.md) —
[Windows 9x guest setup](docs/windows-9x.md) —
[Windows NT guest setup](docs/windows-nt.md) —
[9p filesystem](docs/filesystem.md) —
[Linux rootfs on 9p](docs/linux-9p-image.md) —
[Profiling](docs/profiling.md)
## Compatibility
Here's an overview of the operating systems supported in v86:
- Linux works pretty well. 64-bit kernels are not supported.
- [Buildroot](https://buildroot.org/) can be used to build a minimal image.
[humphd/browser-vm](https://github.com/humphd/browser-vm) and
[darin755/browser-buildroot](https://github.com/Darin755/browser-buildroot) have some useful scripts for building one.
- [SkiffOS](https://github.com/skiffos/SkiffOS/tree/master/configs/browser/v86) (based on Buildroot) can cross-compile a custom image.
- Ubuntu and other Debian derivatives works up to the latest version that supported i386 (16.04 LTS or 18.04 LTS for some variants).
- Alpine Linux works. An image can be built from a Dockerfile, see [tools/docker/alpine/](tools/docker/alpine/).
- Arch Linux 32 works. See [archlinux.md](docs/archlinux.md) for building an image.
- ReactOS works.
- FreeDOS, Windows 1.01 and MS-DOS run very well.
- KolibriOS works.
- Haiku works.
- Android-x86 has been tested up to 4.4-r2.
- Windows 1, 3.x, 95, 98, ME, NT and 2000 work reasonably well.
- In Windows 2000 and higher the PC type has to be changed from ACPI PC to Standard PC
- There are some known boot issues ([#250](https://github.com/copy/v86/issues/250), [#433](https://github.com/copy/v86/issues/433), [#507](https://github.com/copy/v86/issues/507), [#555](https://github.com/copy/v86/issues/555), [#620](https://github.com/copy/v86/issues/620), [#645](https://github.com/copy/v86/issues/645))
- See [Windows 9x guest setup](docs/windows-9x.md)
- Windows XP, Vista and 8 work under certain conditions (see [#86](https://github.com/copy/v86/issues/86), [#208](https://github.com/copy/v86/issues/208))
- See [Windows NT guest setup](docs/windows-nt.md)
- Many hobby operating systems work.
- 9front works.
- Plan 9 doesn't work.
- QNX works.
- OS/2 doesn't work.
- FreeBSD works.
- OpenBSD works with a specific boot configuration. At the `boot>` prompt type
`boot -c`, then at the `UKC>` prompt `disable mpbios` and `exit`.
- NetBSD works only with a custom kernel, see [#350](https://github.com/copy/v86/issues/350).
- SerenityOS works (only 32-bit versions).
- [SkiftOS](https://skiftos.org/) works.
You can get some information on the disk images here: https://github.com/copy/images.
## How to build, run and embed?
You need:
- make
- Rust with the wasm32-unknown-unknown target
- A version of clang compatible with Rust
- java (for Closure Compiler, not necessary when using `debug.html`)
- nodejs (a recent version is required, v24.16 is known to be working)
- To run tests: nasm, gdb, qemu-system, gcc, libc-i386 and rustfmt
See [tools/docker/test-image/Dockerfile](tools/docker/test-image/Dockerfile)
for a full setup on Debian or
[WSL](https://docs.microsoft.com/en-us/windows/wsl/install).
- Run `make` to build the debug build (at `debug.html`).
- Run `make all` to build the optimized build (at `index.html`).
- ROM and disk images are loaded via XHR, so if you want to try out `index.html`
locally, make sure to serve it from a local webserver. You can use `make run`
to serve the files using Python's http module.
- If you only want to embed v86 in a webpage you can use `libv86.js`. For usage,
check out the [examples](examples/). You can download it from the [release section](https://github.com/copy/v86/releases).
- For bundler-based setups (Vite/React/Next/Webpack), there is also an official npm package:
https://www.npmjs.com/package/v86
This package was originally maintained by [@giulioz](https://github.com/giulioz) (bundler-optimized fork) and was made "official" for this repo by [@basicer](https://github.com/basicer) with the author's permission.
It is published automatically from this repository via GitHub Actions ([.github/workflows/ci.yml](.github/workflows/ci.yml), Upload release job) on pushes to `master` and uses `npm publish --provenance`.
Install: `npm install v86`
### Alternatively, to build using Docker
- If you have Docker installed, you can run the whole system inside a container.
- See `tools/docker/exec` to find the Dockerfile required for this.
- You can run `docker build -f tools/docker/exec/Dockerfile -t v86:alpine-3.19 .` from the root directory to generate docker image.
- Then you can simply run `docker run -it -p 8000:8000 v86:alpine-3.19` to start the server.
- Check `localhost:8000` for hosted server.
### Running via Dev Container
- If you are using an IDE that supports Dev Containers, such as GitHub Codespaces, the Visual Studio Code Remote Container extension, or possibly others such as Jetbrains' IntelliJ IDEA, you can setup the development environment in a Dev Container.
- Follow the instructions from your development environment to setup the container.
- Run the Task "Fetch images" in order to download images for testing.
## Testing
The disk images for testing are not included in this repository. You can
download them directly from the website using:
`mkdir -p images && curl --compressed --output-dir images/ --remote-name-all https://i.copy.sh/{linux.iso,linux3.iso,linux4.iso,buildroot-bzimage68.bin,TinyCore-11.0.iso,oberon.img,msdos.img,openbsd-floppy.img,kolibri.img,windows101.img,os8.img,freedos722.img,mobius-fd-release5.img,msdos622.img}`
Run integration tests: `make tests`
Run all tests: `make jshint rustfmt kvm-unit-test nasmtests nasmtests-force-jit expect-tests jitpagingtests qemutests rust-test tests`
See [tests/Readme.md](tests/Readme.md) for more information.
## API examples
- [Basic](examples/basic.html)
- [Programmatically using the serial terminal](examples/serial.html)
- [A Lua interpreter](examples/lua.html)
- [Two instances in one window](examples/two_instances.html)
- [Networking between browser windows/tabs using the Broadcast Channel API](examples/broadcast-network.html)
- [TCP Terminal (fetch-based networking)](examples/tcp_terminal.html)
- [Saving and restoring emulator state](examples/save_restore.html)
Using v86 for your own purposes is as easy as:
```javascript
var emulator = new V86({
screen_container: document.getElementById("screen_container"),
bios: {
url: "../../bios/seabios.bin",
},
vga_bios: {
url: "../../bios/vgabios.bin",
},
cdrom: {
url: "../../images/linux.iso",
},
autostart: true,
});
```
See [v86.d.ts](v86.d.ts) for TypeScript definitions. You can use `make doc` (TypeDoc) or `make denodoc` (Deno) to generate HTML documentation in `./docs/api/`.
## Generative AI
At this time, v86 does not accept pull requests or issues written partially or entirely by generative AI tools.
Exceptions may be made on a case-by-case basis.
## License
v86 is distributed under the terms of the Simplified BSD License, see
[LICENSE](LICENSE). The following third-party dependencies are included in the
repository under their own licenses:
- [`lib/softfloat/softfloat.c`](lib/softfloat/softfloat.c)
- [`lib/zstd/zstddeclib.c`](lib/zstd/zstddeclib.c)
- [`tests/kvm-unit-tests/`](tests/kvm-unit-tests)
- [`tests/qemutests/`](tests/qemutests)
- [`src/floppy.js/`](src/floppy.js) contains parts ported from qemu under the MIT license, see LICENSE.MIT.
## Credits
- CPU test cases via [QEMU](https://wiki.qemu.org/Main_Page)
- More tests via [kvm-unit-tests](https://www.linux-kvm.org/page/KVM-unit-tests)
- [zstd](https://github.com/facebook/zstd) support is included for better compression of state images
- [Berkeley SoftFloat](http://www.jhauser.us/arithmetic/SoftFloat.html) is included to precisely emulate 80-bit floating point numbers
- [The jor1k project](https://github.com/s-macke/jor1k) for 9p, filesystem and uart drivers
- [WinWorld](https://winworldpc.com/) sources of some old operating systems
- [OS/2 Museum](https://www.os2museum.com/) sources of some old operating systems
- [ArchiveOS](https://archiveos.org/) sources of several operating systems
## More questions?
Shoot me an email to `copy@copy.sh`. Please report bugs on GitHub.
Download original READMERelease log
Selected releases and changes, with coverage from our weekly emulation roundup.
Sources & further reading
FROM THE COMMUNITY
Player reviews
Starting site scores are provisional editorial scores. Established mainstream projects receive a higher starting score; other imported entries begin at a neutral 6/10 pending individual review. Member scores change the average after approval.
Your take on v86
Spam has been overwhelming. To help us approve your review, sign up and introduce yourself in the Introductions forum so we know you’re not a bot.
Sign in with your Retro Replay account to rate this project and share your experience.
Sign in to review
Retro Replay Retro Gaming History, Reviews & Emulation