Source code, notebooks, WebAssembly, subtitles and 3D sample files

Download clean, non-destructive source code fixtures (.c, .cpp, .cs, .go, .java, .php, .pl, .py, .rb, .sh, .swift, .vb), WebAssembly (.wasm) binary modules, Jupyter Notebooks (.ipynb), NDJSON, glTF Binary (.glb), and playlist/subtitle files (.ass, .m3u, .m3u8, .xspf).

Overview and format architecture

Developer tooling, code-review platforms, LMS grading portals, static-analysis scanners, and CI/CD pipelines need deterministic source code and structured data fixtures to test syntax highlighters, AST parsers, line-ending normalizers, and upload security filters. At the same time, modern web applications increasingly load binary WebAssembly (.wasm) modules, 3D glTF Binary (.glb) meshes, Jupyter Notebooks (.ipynb), and streaming playlists (.m3u8, .m3u, .xspf, .ass).

Every source file below is written by hand to perform a simple, transparent arithmetic or hashing calculation (such as summing a 5-element array or computing an FNV-1a checksum) with zero network calls, zero filesystem mutations, and zero external dependencies. In accordance with our safety policy, compiled Java .class / .jar bytecode is not hosted as a downloadable binary.

Format reference and sample downloads

Each format below has a permanent anchor link (for example #ass) so you can link directly to its specification row from your test plan or the A to Z Format Index.

Source code, notebooks, WebAssembly, subtitles and 3D sample files
Extension & MIMEMagic bytes & descriptionSize / StatusSHA-256 / Provenance noteAction
.ass
text/x-ssa
5B 53 63 72 69 70 74 20 49 6E 66 6F 5D ('[Script Info]')

SubStation Alpha v4+ styled subtitle script supporting karaoke timing, positioning, and font styling.

562 bytes562 bytes 3be0387cd821cce5ff5e48f4515c2838502f6b69e3b0b14b1767ef2012ac2d43 Download .ass
.bat
application/x-msdos-program
40 65 63 68 6F 20 6F 66 66 ('@echo off')

Windows Command Prompt batch script text fixture.

173 bytes173 bytes 5f91ecfbb67420cec4adfeb94f132f6a1ab6710632c8234862adfdf49efc32a9 Download .bat
.c
text/x-csrc
23 69 6E 63 6C 75 64 65 ('#include <stdio.h>')

ISO C99 source file implementing a standalone 32-bit FNV-1a hash function.

386 bytes386 bytes ea71bd3cb3ec8a17a9921e69db7cdec5c6e5a793272a99b4f23154a9b8426f14 Download .c
.class
application/java-vm
CA FE BA BE (Java class file magic number)

Compiled Java Virtual Machine bytecode file.

Unavailable Unavailable (Safety Policy): executable JVM bytecode (.class / .jar) is not hosted as a static download to prevent browser Safe Browsing warnings. Not hosted
.cpp
text/x-c++src
23 69 6E 63 6C 75 64 65 ('#include <iostream>')

ISO C++17 source file using std::vector and std::accumulate.

257 bytes257 bytes d42b06640157f087fe411906e0fa4658922fd3df2e294930a73bb76715746304 Download .cpp
.cs
text/x-csharp
75 73 69 6E 67 20 53 79 73 74 65 6D ('using System;')

C# source file for .NET Roslyn parser and syntax highlighter testing.

287 bytes287 bytes 09c736cf31f1820783c4caa30785fd586f3595ae59260bd06000f104f776f015 Download .cs
.glb
model/gltf-binary
67 6C 54 46 02 00 00 00 ('glTF' v2 binary header)

Khronos Group glTF 2.0 binary 3D asset container packing scene JSON and binary buffers in a single file.

120 bytes120 bytes 47c6d9454a05e0729dc01128f5d6cbc6979f11f4f76c9d4e64a1069238701f8b Download .glb
.go
text/x-go
70 61 63 6B 61 67 65 20 6D 61 69 6E ('package main')

Go source file for gofmt and lexer testing.

160 bytes160 bytes e8c19c2b647ae1e03e1d71c0d2ffb65013341b31054218327bc321d41dddf95f Download .go
.h
text/x-chdr
23 69 66 6E 64 65 66 ('#ifndef SAMPLE_FIXTURE_H')

C/C++ header file with include guards and struct declarations.

217 bytes217 bytes a5f5d0de9e7e36ac56363ec58afdea9012bf584dc2fbefc31b3a2da04719c71e Download .h
.htaccess
text/plain
23 20 41 70 61 63 68 65 ('# Apache...')

Apache HTTP Server directory configuration fixture (`sample.htaccess`).

170 bytes170 bytes ffcbb651ec7a606472bb15cc1c6fcb42e28ebc9fe9b13758aa62f87222105290 Download .htaccess
.ipynb
application/x-ipynb+json
7B 0A 20 20 22 63 65 6C 6C 73 22 (JSON 'cells' + 'nbformat': 4)

Project Jupyter Notebook v4.5 JSON document containing markdown and code cells with execution output.

848 bytes848 bytes c2d6a611fe8c1a099fee8a99b9a8232a178eb8b32a1d4dafcc69507c828eb6a3 Download .ipynb
.java
text/x-java-source
70 61 63 6B 61 67 65 20 ('package com.example.fixtures;')

Java 17+ source code fixture using Stream API.

340 bytes340 bytes d9e3b64b8bc0e3a303f8bcb11e1dfed1fa4dc52b5072ef21de1f46d6c9824f5f Download .java
.m3u
audio/x-mpegurl
23 45 58 54 4D 33 55 ('#EXTM3U')

Extended M3U audio playlist with #EXTINF duration and title directives.

230 bytes230 bytes 73c6cfbde5d27bdee8ac35b4304a73bdb4e2a6074655fc539a36ac49fc07000c Download .m3u
.m3u8
application/vnd.apple.mpegurl
23 45 58 54 4D 33 55 ('#EXTM3U' + '#EXT-X-VERSION:3')

UTF-8 HTTP Live Streaming (HLS, RFC 8216) media playlist manifest.

144 bytes144 bytes 6832eb07f5c6aa8105322ff6c330e340b1e15f2fc38938157bdf336408200efe Download .m3u8
.ndjson
application/x-ndjson
7B 22 69 64 22 3A (newline-delimited JSON objects)

Newline-Delimited JSON stream (1 JSON object per LF-terminated line, companion to .jsonl).

1.22 KB1,252 bytes f99bca5e1ed698197b45518fc2dc7f908a36da814e2ff065186f3b98f5f23c59 Download .ndjson
.php
application/x-httpd-php
3C 3F 70 68 70 ('<?php')

PHP 8 strict-typed source fixture.

208 bytes208 bytes 723fa58f9800b281b75dc293a1535adf9aafbde9b6cb871b661571141e404042 Download .php
.pl
text/x-perl
23 21 2F 75 73 72 2F 62 69 6E 2F 65 6E 76 20 70 65 72 6C ('#!/usr/bin/env perl')

Perl 5 strict/warnings script fixture.

133 bytes133 bytes 47cd373e86a5e12e925fdead6d1e56bdbbe6ffaf6d2e480d47a5aa0d138923ad Download .pl
.py
text/x-python
23 21 2F 75 73 72 2F 62 69 6E 2F 65 6E 76 20 70 79 74 68 6F 6E 33

Python 3 type-annotated source module.

342 bytes342 bytes 611428e905c7abca61611f5136a36b07f69e6995ee3f75715cf59f62b0b996f7 Download .py
.rb
text/x-ruby
23 20 66 72 6F 7A 65 6E ('# frozen_string_literal: true')

Ruby source fixture.

89 bytes89 bytes 146af82bf2472dcf9122db1b23ff2025a3e3b8e63e879b87f4e4267765a4abee Download .rb
.sh
application/x-sh
23 21 2F 62 69 6E 2F 73 68 ('#!/bin/sh')

POSIX shell script fixture.

91 bytes91 bytes 0cdba579bb0de38ba22ef6beb5613ba26db6b5c8c7125ce84099c66569916d2a Download .sh
.swift
text/x-swift
69 6D 70 6F 72 74 20 46 6F 75 6E 64 61 74 69 6F 6E ('import Foundation')

Swift source code fixture.

240 bytes240 bytes 048ae7dc3d0b95d8fc1a7090c985d8f7a1ad7647f68a84fbae97cc8038ebb58c Download .swift
.test
text/plain
23 20 54 41 50 ('# TAP version 13')

Test Anything Protocol (TAP v13) test runner output fixture.

209 bytes209 bytes f85dcc7d57e40c30343a71d6345c3e1cd98467e2f1c478a55f120971b5a3fabc Download .test
.vb
text/x-vb
49 6D 70 6F 72 74 73 20 53 79 73 74 65 6D ('Imports System')

Visual Basic .NET source module fixture.

292 bytes292 bytes 2d89829f532b25992538cf55623bea18550123e09d928ef9d463eff61f67f29e Download .vb
.wasm
application/wasm
00 61 73 6D 01 00 00 00 ('\0asm' version 1 binary module)

W3C WebAssembly binary module exporting a valid add(i32, i32) -> i32 function.

41 bytes41 bytes f61fd62f57c41269c3c23f360eeaf1090b1db9c38651106674d48bc65dba88ba Download .wasm
.xspf
application/xspf+xml
3C 3F 78 6D 6C ... 3C 70 6C 61 79 6C 69 73 74 ('<playlist xmlns="http://xspf.org/ns/0/">')

Xiph.Org XML Shareable Playlist Format v1 document.

372 bytes372 bytes d196cea7b17d1f1074df736eef4a371def217ffaf82c20556c93dea3fedb9114 Download .xspf

How to test WebAssembly, source code, and streaming manifests

Related hubs and diagnostics

Frequently asked questions

Does sample.wasm actually compile and run in WebAssembly.instantiate?
Yes. It is a hand-assembled 41-byte W3C WebAssembly v1 binary module with Type, Function, Export, and Code sections that exports add(a, b) returning a + b.
Why is .class marked unavailable as a download?
Google Safe Browsing and enterprise firewalls frequently flag domains that serve raw Java .class bytecode, .jar archives, or Windows .exe binaries. We document the CA FE BA BE magic signature for reference while keeping the domain 100% free of executable binaries.