᠎᠎᠎          
51K

Random binary file generator

World's simplest file tool
This is a free browser-based utility that generates random binary files. You can specify the file size in bytes, kilobytes, or megabytes, and choose a predefined range of bytes for the random content, or set your own custom byte range. You can create as many random files as you need and save them with any file extension. Created by computer geeks at team Browserling.
we have a comic! comic for nerds
We have created our own comic! Check it out! New comics every week.
File Size
Set the size of the binary file in bytes (b), kilobytes (k), or megabytes (m).
File Contents
Choose the byte range.
Specify the custom byte range. (To use this, select the "Custom Bytes" mode in the range option).
File Extension
Enter the file extension for download.

What is a random binary file generator?

learn more about this tool
This online program creates random binary files of any size. The needed file size can be set in the options. The file size can be configured by entering an integer (such as "32") or a number with the prefix "b" (such as "32b") in the file length field. You can also specify the file length in kilobytes (for example, "8k" or "8kb") and in megabytes (for example, "2m" or "2mb"). There are 1024 bytes in a kilobyte (1kb = 1024b) and 1024 kilobytes in a megabyte (1mb = 1024kb = 1024×1024b). The contents of the file can also be adjusted in the options. To quickly generate files with different content, the app is equipped with a predefined byte range selection list. By choosing one of the predefined byte ranges, the random byte selection algorithms will pick bytes only from the selected range. The first (and default) byte range includes all 8-bit bytes from 0 (0x00) to 255 (0xFF). The other range categories are Low Nibbles (bytes from 0 to 127), which have the lower end set, High Nibbles (bytes 128-255), which have the higher end set, Full Bytes with all bits set (0xFF), Null Bytes with no bits sets (0x00), the C0 ASCII Control Chars (0-31 and 127), C1 Extended ASCII Control Chars (128-159), Printable ASCII Chars (32-126), Lowercase Chars (97-122), Uppercase Chars (65-90), Digits (48-57), Punctuation Chars (33-47, 58-64, 91-96, 123-126), Single Bits (0 and 1), and Powers of Two (bytes 1, 2, 4, 8, 16, 32, 64, 128). To create your own range of bytes, use the custom range mode, and enter the necessary bytes in the field below. For example, by entering "32-64", the program will generate bytes from 32 to 64 (both inclusive). Similarly, by entering "16, 32-64", the program will generate bytes 16 and 32 to 64. Each randomly generated binary file can be download with any extension that can be specified in the file extension option (by default, the extension is .bin). Filabulous!

Random binary file generator examples

Click to use
Half Octet File
In this example, we generate a random binary file that contains bytes in the range 0 to 127, also known as the Low Nibble range. Bytes in this range have bits set only in the first four lower bits and the higher four bits are always zero. This byte range includes all printable, non-printable, and control characters from the ASCII table. We create 128 random bytes and get a file of size 128 bytes with the .bin extension. This range is also known as the Half Octet range.
K?\8,nB,6RN^'A7qI hR5'XXB-\kVwB/8+zh^ 54XLfins/1HL &qXy}*=vu?y`YZ;jQQmk~+8=_G3z(- 5DYl;*-~]M}
Required options
These options will be used automatically if you select this example.
Set the size of the binary file in bytes (b), kilobytes (k), or megabytes (m).
Choose the byte range.
Enter the file extension for download.
Text File of Punctuation
This example creates a text file (.txt extension) with 256 random bytes. The generated bytes are from several different ranges that correspond to all one-byte punctuation marks. The byte values of punctuation characters are: 33 to 47, 58 to 64, 91 to 96, and 123 to 126.
[!?-\(:()#&+%')(!^+`,$]#="+[+~|'.||<\"~=|-'\#'&<_-!%.*[(*^+;];*!>(!?+/*+-+-#<$$,,*)("^+&,][*;@!={`%{;^'[{.*>'~_":>{*>)>%}*{(!]">'+)>"*[;;`$%=->-}!%^'"$!$_)(~`'$#|}<%;(\_~.~>/`+/(\){+/>^>>&~:!*!~/\}^"+=.&?^/_@(~&/#^&?'&':[*,><]].?(|>{(^[+\/{|<@[\~_+<`::;/@[
Required options
These options will be used automatically if you select this example.
Set the size of the binary file in bytes (b), kilobytes (k), or megabytes (m).
Choose the byte range.
Enter the file extension for download.
Fibonacci File
In this example, we let the famous Leonardo of Pisa (also known as Fibonacci) play with our utility. Needless to say, he entered a custom byte range that contains only the Fibonacci numbers. As a result, the generated binary file contains the Fibonacci bytes: 0, 1, 2, 3, 5, 8, 13, 21, 34, 55, 89, 144, 233. The file size of the Fibonacci file is 64b and of course, its extension is .fib.
Yé é" Y "é"é "7YYéY"7 
Required options
These options will be used automatically if you select this example.
Set the size of the binary file in bytes (b), kilobytes (k), or megabytes (m).
Choose the byte range.
Specify the custom byte range. (To use this, select the "Custom Bytes" mode in the range option).
Enter the file extension for download.
All Bits Set
In this example, we create a 512-byte long file that has absolutely all bits set. Bytes with all bits set have the value 255 (0xFF in hex or 11111111 in binary) and the file contains a total of 4096 one-bits (512 x 8). As the file contains all one-bits, we give it an extension .one.
ÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿÿ
Required options
These options will be used automatically if you select this example.
Set the size of the binary file in bytes (b), kilobytes (k), or megabytes (m).
Choose the byte range.
Enter the file extension for download.
Zero-filled File
This example generates a 2kb all-bits-zero file. What that means is that all bytes in it are zero bytes with all bits unset. In other words, it's a void file filled with NULs. The extension of this file is .zero.
␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀␀
Required options
These options will be used automatically if you select this example.
Set the size of the binary file in bytes (b), kilobytes (k), or megabytes (m).
Choose the byte range.
Enter the file extension for download.
Extreme File
In this example, a polarized file with two opposite extreme bytes is created. The first byte is the zero byte 0x00 and the second byte is the full byte 0xFF. There's a total of 32 bytes in this file and the extension of this file is .extreme.
ÿ␀␀ÿ␀ÿÿ␀␀␀␀ÿÿ␀␀ÿ␀ÿÿ␀␀ÿÿ␀ÿÿÿ␀ÿ␀ÿ␀
Required options
These options will be used automatically if you select this example.
Set the size of the binary file in bytes (b), kilobytes (k), or megabytes (m).
Choose the byte range.
Specify the custom byte range. (To use this, select the "Custom Bytes" mode in the range option).
Enter the file extension for download.
Pro tips Master online file tools
You can pass options to this tool using their codes as query arguments and it will automatically compute output. To get the code of an option, just hover over its icon. Here's how to type it in your browser's address bar. Click to try!
https://onlinefiletools.com/generate-random-binary-file?&file-size=128b&byte-range=low-nibbles&file-extension=.bin
All file tools
Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
Quickly generate a random text file of any size.
Quickly generate a random binary file of arbitrary size.
Quickly generate an empty file with any extension.
Quickly shorten a text file to the given number of bytes.
Quickly extract a fragment of a certain size from a text file.
Quickly simulate data corruption in a text file.
Coming soon These file tools are on the way
Edit a File
Load a file in a browser-based file editor.
Detect File Type
Find the exact type of the given file.
Create a Custom File
Create an arbitrary file of arbitrary size with arbitrary content.
Extract a File Fragment
Extract a byte range between start and end positions.
Zip Compress a File
Compress a file using the zip compression algorithm.
Uncompress a Zip File
Unzip a .zip file and extract its content.
Recompress a Zip File
Recompress a zip archive without extracting it.
Split a Zip Into Pieces
Create a multi-file zip archive from the given archive.
Add a Comment to a Zip File
Add a hidden comment or a secret message in a zip file.
RAR Compress a File
Compress a file using the RAR compression algorithm.
Uncompress a RAR File
Unrar a .rar file and extract its content.
Recompress a RAR File
Recompress a rar archive without extracting it.
Gzip Compress a File
Compress a file using the gzip compression algorithm.
Gunzip a File
Uncompress a .gz file and extract its content.
Bzip2 Compress a File
Compress a file using the bzip2 compression algorithm.
Bunzip2 a File
Uncompress a .bz file and extract its content.
Xz Compress a File
Compress a file using the xz compression algorithm.
Unxz a File
Uncompress an .xz file and extract its content.
Lzma Compress a File
Compress a file using the LZMA compression algorithm.
Unlzma a File
Uncompress an .lzma file and extract its content.
Tar a File
Create a tarball with the given files.
Untar a File
Extract the contents of a .tar archive.
Base32 Encode a File
Convert a file to base32 encoding.
Base32 Decode a File
Create a file from base32 encoding.
Base64 Encode a File
Convert a file to base64 encoding.
Base64 Decode a File
Create a file from base64 encoding.
URL Encode a File
Convert a file to URL encoding (percent encoding).
URL Decode a File
Create a file from URL encoded data (percent encoded data).
Convert a File to HTML Entities
Encode a file to HTML.
Convert HTML Entities to a File
Create a file from HTML entities.
Merge Files
Join multiple files together.
Create a High Entropy File
Generate a file that has high entropy.
Create a Low Entropy File
Generate a file that has low entropy.
Generate a Small File
Create a relatively tiny binary or text file (useful for testing).
Generate a Big File
Create a relatively large binary or text file (useful for testing).
Generate a Single Byte File
Create a file with any extension that contains just one byte.
Create a File from Bytes
Given a list or an array of bytes, create a file from them.
Split a File
Split a file in chunks of certain size.
Reverse a File
Reverse the order of bytes in a file.
Change File Endianness
Swap bytes in a file to change its endianness.
Shuffle Bytes in a File
Randomly change the order of bytes in a file.
Pick Bytes from a File
Randomly select one or more bytes from the given file.
Damage a File
Introduce random errors in a binary file.
Shred a File
Overwrite the given file repeatedly with random bytes.
Randomly Flip Bits in a File
Corrupt data by flipping one or more bits in the given file.
Randomly Replace Bytes in a File
Corrupt a file by randomly replacing byte values in a file.
Randomly Delete Bytes From a File
Corrupt a file by removing one or more bytes at random positions.
Remove Bytes From a File
Delete certain bytes from a file.
Change Bytes in a File
Replace bytes in a file.
Clamp Bytes in a File
Limit the range of byte values in a file.
Increment Bytes in a File
Increment every byte in a file by one (or more).
Decrement Bytes in a File
Decrement every byte in a file by one (or more).
Left-pad a File
Pad a file with bytes on the left.
Right-pad a File
Pad a file with bytes on the right.
Zero-fill a File
Change all bytes in a file to zeros.
Rotate a File
Rotate bytes in a file to the left or to the right.
Shift a File
Shift bytes in a file to the left or to the right.
Mirror a File
Create a mirror copy of the given file.
Create a Symmetric File
Create a palindromic file from the given file.
Interleave Two Files
Merge two (or more) files byte by byte.
Create Random Bytes
Generate a list of random bytes.
Analyze a File
Print information about a file.
Display a Hex Dump of a File
Print a hexadecimal view of the data in a file.
Convert Hex Bytes Into a File
Create a binary file from the given hex bytes (in ASCII).
Display a Binary Dump of a File
Print a binary view of the data in a file.
Convert Binary Bits Into a File
Create a binary file from the given binary bits (in ASCII).
Find File Size
Find the size of any file in bytes/kilobytes/megabytes.
Rename a File
Set a new filename for the given file.
Zalgo a File
Let Zalgo destroy your file.