Sample text files for testing encodings and line endings, free and CC0
Plain text is rarely as plain as it looks. These files cover exact sizes, both common line endings, and the character encodings a parser is likely to meet.
Sizes: txt/lorem-1kb.txt, txt/lorem-100kb.txt, txt/lorem-1mb.txt and
txt/lorem-10mb.txt are exact decimal sizes of Lorem Ipsum, and txt/lorem-1mib.txt and
txt/lorem-10mib.txt exact binary ones. txt/very-long-line-1mb.txt is a single line of
1,000,000 bytes, for tools that read a whole line into memory.
Line endings: txt/lf.txt and txt/crlf.txt are 100 lines each, with Unix and Windows
endings.
Encodings: txt/utf8-bom.txt and txt/utf16le-bom.txt start with byte-order marks, while
txt/latin1.txt, txt/windows-1252.txt and txt/shift-jis.txt are not UTF-8 at all.
txt/utf8-multilingual.txt has a line per script plus emoji, combining marks, bidi controls
and unusual spaces, and txt/emoji-only.txt contains nothing but emoji sequences.
txt/utf16be-no-bom.txt encodes ASCII Lorem Ipsum as UTF-16 big-endian without a BOM.
Unlike txt/utf16le-bom.txt, it gives an encoding detector no byte-order marker. The
declared charset is utf-16be; the validator independently measures the byte order from
the NUL lane in these ASCII code units and rejects little-endian bytes or an added BOM.
Related formats: Markdown, log files, INI and binary files.
| File | Size | Properties | Description |
|---|---|---|---|
crlf.txt
|
9 KB (8,981 bytes) | utf-8, CRLF | 100 lines of Lorem Ipsum with Windows (CRLF) line endings.
Snippets
|
emoji-only.txt
|
1.5 KB (1,488 bytes) | utf-8, LF | Nothing but emoji sequences, including ZWJ families and skin-tone modifiers.
Snippets
|
latin1.txt
|
1.2 KB (1,151 bytes) | iso-8859-1, LF | Western European text encoded as ISO-8859-1, not UTF-8.
Snippets
|
lf.txt
|
9 KB (9,039 bytes) | utf-8, LF | 100 lines of Lorem Ipsum with Unix (LF) line endings.
Snippets
|
lorem-100kb.txt
|
100 KB (100,000 bytes) | utf-8, LF | Exactly 100,000 bytes of Lorem Ipsum, LF line endings, cut at a word boundary and space-padded before the final newline.
Snippets
|
lorem-10mb.txt
|
10 MB (10,000,000 bytes) | utf-8, LF | Exactly 10,000,000 bytes of Lorem Ipsum, LF line endings, cut at a word boundary and space-padded before the final newline.
Snippets
|
lorem-10mib.txt
|
10.5 MB (10,485,760 bytes) | utf-8, LF | Exactly 10,485,760 bytes of Lorem Ipsum, LF line endings, cut at a word boundary and space-padded before the final newline.
Snippets
|
lorem-1kb.txt
|
1 KB (1,000 bytes) | utf-8, LF | Exactly 1,000 bytes of Lorem Ipsum, LF line endings, cut at a word boundary and space-padded before the final newline.
Snippets
|
lorem-1mb.txt
|
1 MB (1,000,000 bytes) | utf-8, LF | Exactly 1,000,000 bytes of Lorem Ipsum, LF line endings, cut at a word boundary and space-padded before the final newline.
Snippets
|
lorem-1mib.txt
|
1 MB (1,048,576 bytes) | utf-8, LF | Exactly 1,048,576 bytes of Lorem Ipsum, LF line endings, cut at a word boundary and space-padded before the final newline.
Snippets
|
shift-jis.txt
|
1.7 KB (1,709 bytes) | shift_jis, LF | Japanese pseudo-text encoded as Shift-JIS; every character is representable in that charset.
Snippets
|
utf16be-no-bom.txt
|
3.6 KB (3,614 bytes) | utf-16be, LF | ASCII Lorem Ipsum encoded as UTF-16 big-endian without a BOM. Unlike txt/utf16le-bom.txt, there is no byte-order marker for an encoding detector to follow.
Snippets
|
utf16le-bom.txt
|
2.8 KB (2,788 bytes) | utf-16 with BOM, LF | UTF-16 little-endian text with a byte-order mark.
Snippets
|
utf8-bom.txt
|
1.4 KB (1,437 bytes) | utf-8 with BOM, LF | UTF-8 text preceded by a byte-order mark, which many parsers mishandle.
Snippets
|
utf8-multilingual.txt
|
1.3 KB (1,308 bytes) | utf-8, LF | One line per script (Latin, Greek, Cyrillic, Arabic, Hebrew, Devanagari, Thai, CJK, Hangul), plus emoji, combining marks, bidi controls and unusual space characters.
Snippets
|
very-long-line-1mb.txt
|
1 MB (1,000,000 bytes) | utf-8, LF | A single line of exactly 1,000,000 bytes, for tools that read a whole line into memory.
Snippets
|
windows-1252.txt
|
1.6 KB (1,606 bytes) | windows-1252, LF | Text encoded as Windows-1252, the charset mislabelled as Latin-1 most often.
Snippets
|
Every text file in one command, each checked against its hash: npx loremfile get --format txt, or loremfile get --format txt after pip install loremfile.
Related formats
File names follow the naming grammar. Verify a download against sha256sums.txt.