᠎᠎᠎          
51K

Random text file generator

World's simplest file tool
This is a free browser-based utility that creates random text files. You can set the desired file size (in bytes) as well as set the character class to use for file's content. We support several predefined classes, such as letters and numbers, but you can also enter your own characters that will be used to fill the file. Created by computer geeks at team Browserling.
We put a browser in your browser! Browserling
Check out our project Browserling – get a browser in your browser.
File Size
File length in bytes. (Accepts suffix b, k, m).
Valid file length examples: 32 - 32 bytes 512b - 512 bytes 128k - 128 kilobytes 1.15m - 1.15 megabytes
File Contents
Select the type of text file contents.
Generate a random text file that contains these letters. (Select Custom Letters to enable this.)

What is a random text file generator?

learn more about this tool
This online utility fills a text file with random characters until it reaches a certain size. You can specify the size in the file length option (above) and you can enter characters that will go in the file in the second options column. For your convenience, we've listed the most often used character types in the dropdown. They are – lower case chars, upper case chars, mixed case chars, and digits. Hit the save as button to download the file you generated. Filabulous!

Random text file generator examples

Click to use
1KB Text File
In this example, we generate a text file with the size of 1024 bytes (1KB) that contains only letters o and O. This is done by selecting custom letters type option and entering "oO" in the custom letters field.
OOOoOOoOoOooooooOoooOOooOOooOoOOoooOOoooOooOooOOOoooooOoOOOOoOooOOoooOOOooOOOOooooOOOOOoOOOOOooOoOOOOOOOOOOoOooOoOOOOoOoOOoOoOoooOOOOoOoooOOoooOOOOoOOoOOooOOoooOOOOOoOooOoOOOOoOOOOOooOOOoOoOOooOOoOOoOoOoOOOOoOOooOOOoOoooooOoOOOOOoooooOOoOOOOoOOoooooOOOOoooOOOooOoOOOoooooOooOOooOOOooOooOooooOoooOoooOOooOOOOOoOOooOOOOooOooOOOoOOoOoooOoooooOOooOOOooooOOoOOoOOOooOoOOoOooOOoOoOoOOoOoOOOOOOOoOOOooOoooOooOoOooOoOOOoOoOOOoooOoOoOooOooOOooooOOOOoOOOOoOOOooOooOOoOoOooOOOOoOooOoOOoOOOoOOoOoOoooOoOooOOOoooOOoOoooooooOOooooOoooOOOoOOooOOoooOOoooOOOoOooOOOOoooOooOooOoOooooOoOooOOoOoOOooOOooooOOOoooOOOOOoOoOOoooOoOoOOOOoooOoOoOOooooooooOoOOOooOoOOoOoOoOooooOOOOOooOooOoOoooOoooOooOoOOOooOoooOOooOOOOoooOoOooOooOoOoOooOOoOoOoooOoOOoooooOOOooOOOoOooOooOoooOOooOOOoooooOOooooooOoooOOoOOOOOoOoOOOOOOOoOOoOOooOOOoOooOoOOoOOOOooOOOooOooOoooOoOoooooooOoOOOoOOoooOOOoOOOOOoOOoOOoooOooOOOoOOOooOOOOOOOoooooOOOOOooOoOOooOOOOooOoOOoOooooOOOoOOOOOoOoOooooOOOooOOooooOooooOoOOoOOOoooOOoOOOooOOoooOoOOOoooOoOooOOOooOoOoooOoOoOoooooOoooOooOOoOOoo
Required options
These options will be used automatically if you select this example.
File length in bytes. (Accepts suffix b, k, m).
Select the type of text file contents.
Generate a random text file that contains these letters. (Select Custom Letters to enable this.)
Hex Letters
This example also generates a text file but with custom letters in it. In this case, the custom letters are base-16 (hex) digits. As a result, we get a text file containing a 256 digit hex number.
20c738fefd1683c6794b062f12c99314f070b85ffb9ad1f72ca3479324187fcc364f5539b6f52de23d6d94f635292d82c5479143240ad3f29c89b4a0ec51dff2cc672b337108c20e573214d7b02edaf7190ac1dd07ed00697323d41e90c91f950c7553aa866015081c7c954ba28f7a3dcfd3296c35424dd06cab139c7084bc37
Required options
These options will be used automatically if you select this example.
File length in bytes. (Accepts suffix b, k, m).
Select the type of text file contents.
Generate a random text file that contains these letters. (Select Custom Letters to enable this.)
Numbers
This example creates a random text file of size 1MB that contains digits only.
259968473555321051432995170388867273686802914165524847210786539720104808784815551142032906709617879099867537186881739121677903050904328853605443564875894640331632319244935213952250671338263438807897170052461748641479547191242841123140025049954439673892426572178762757227923243512294708534139177192032737391855204618990960929377962003812617954681282047954287898794510585865596612279758335733130977341093822827065454869918766247736922119836094636265536488003188343190797394936805646330439137755982107949352310174393694259593431984093364399799730769680068231206638136766366712535971513735818425812468733864771236011992739729756153276272678744577362857685427917373931744453983365160956042239340588762228671154384723182872486945682195935490784897521657000065271394115598340305111114536928100304090823159346328968439717578898769065343698896189397396689445629741154256454227012224182781718247080365361935794855032121512280446238786964831480531992998665266835515231722133855727480140766717085685944199372918192446551847314170558964943583174617696973609097073067455534378972114427270980717977253960258480745527670568805033696362527540208248773360627272991452026310251391591836120247524902507039467369610011286248734602987952473266774056961306807878210698111929321560346119008335066659759802042374155448805426559796335709214601986164164323685975098676385334710348506811784416649378345541374152131195876863157941021826636275323763637312... [continues to 1MB]
Required options
These options will be used automatically if you select this example.
File length in bytes. (Accepts suffix b, k, m).
Select the type of text file contents.
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-text-file?&length=1k&predefined-charset=custom&custom-charset=oO
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.