Sample text files for testing encodings and line endings — free, 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.
Related formats: Markdown, log files, INI and binary files.
| File | Size | Properties | Description |
|---|---|---|---|
crlf.txt
|
9 KB | utf-8, CRLF | 100 lines of Lorem Ipsum with Windows (CRLF) line endings.
Snippets
|
emoji-only.txt
|
1.5 KB | utf-8, LF | Nothing but emoji sequences, including ZWJ families and skin-tone modifiers.
Snippets
|
latin1.txt
|
1.2 KB | iso-8859-1, LF | Western European text encoded as ISO-8859-1, not UTF-8.
Snippets
|
lf.txt
|
9 KB | utf-8, LF | 100 lines of Lorem Ipsum with Unix (LF) line endings.
Snippets
|
lorem-100kb.txt
|
100 KB | 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 | 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 | 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 | 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 | 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 | 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 | shift_jis, LF | Japanese pseudo-text encoded as Shift-JIS; every character is representable in that charset.
Snippets
|
utf16le-bom.txt
|
2.8 KB | utf-16 with BOM, LF | UTF-16 little-endian text with a byte-order mark.
Snippets
|
utf8-bom.txt
|
1.4 KB | 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 | 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 | 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 | windows-1252, LF | Text encoded as Windows-1252, the charset mislabelled as Latin-1 most often.
Snippets
|
Related formats
File names follow the naming grammar. Verify a download against sha256sums.txt.