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.

16 files. The same list as JSON: https://loremfile.dev/txt/index.json

text files
FileSizePropertiesDescription
crlf.txt 9 KB utf-8, CRLF 100 lines of Lorem Ipsum with Windows (CRLF) line endings.
Snippets
curl -O https://loremfile.dev/txt/crlf.txt
<a href="https://loremfile.dev/txt/crlf.txt">download</a>
emoji-only.txt 1.5 KB utf-8, LF Nothing but emoji sequences, including ZWJ families and skin-tone modifiers.
Snippets
curl -O https://loremfile.dev/txt/emoji-only.txt
<a href="https://loremfile.dev/txt/emoji-only.txt">download</a>
latin1.txt 1.2 KB iso-8859-1, LF Western European text encoded as ISO-8859-1, not UTF-8.
Snippets
curl -O https://loremfile.dev/txt/latin1.txt
<a href="https://loremfile.dev/txt/latin1.txt">download</a>
lf.txt 9 KB utf-8, LF 100 lines of Lorem Ipsum with Unix (LF) line endings.
Snippets
curl -O https://loremfile.dev/txt/lf.txt
<a href="https://loremfile.dev/txt/lf.txt">download</a>
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
curl -O https://loremfile.dev/txt/lorem-100kb.txt
<a href="https://loremfile.dev/txt/lorem-100kb.txt">download</a>
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
curl -O https://loremfile.dev/txt/lorem-10mb.txt
<a href="https://loremfile.dev/txt/lorem-10mb.txt">download</a>
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
curl -O https://loremfile.dev/txt/lorem-10mib.txt
<a href="https://loremfile.dev/txt/lorem-10mib.txt">download</a>
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
curl -O https://loremfile.dev/txt/lorem-1kb.txt
<a href="https://loremfile.dev/txt/lorem-1kb.txt">download</a>
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
curl -O https://loremfile.dev/txt/lorem-1mb.txt
<a href="https://loremfile.dev/txt/lorem-1mb.txt">download</a>
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
curl -O https://loremfile.dev/txt/lorem-1mib.txt
<a href="https://loremfile.dev/txt/lorem-1mib.txt">download</a>
shift-jis.txt 1.7 KB shift_jis, LF Japanese pseudo-text encoded as Shift-JIS; every character is representable in that charset.
Snippets
curl -O https://loremfile.dev/txt/shift-jis.txt
<a href="https://loremfile.dev/txt/shift-jis.txt">download</a>
utf16le-bom.txt 2.8 KB utf-16 with BOM, LF UTF-16 little-endian text with a byte-order mark.
Snippets
curl -O https://loremfile.dev/txt/utf16le-bom.txt
<a href="https://loremfile.dev/txt/utf16le-bom.txt">download</a>
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
curl -O https://loremfile.dev/txt/utf8-bom.txt
<a href="https://loremfile.dev/txt/utf8-bom.txt">download</a>
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
curl -O https://loremfile.dev/txt/utf8-multilingual.txt
<a href="https://loremfile.dev/txt/utf8-multilingual.txt">download</a>
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
curl -O https://loremfile.dev/txt/very-long-line-1mb.txt
<a href="https://loremfile.dev/txt/very-long-line-1mb.txt">download</a>
windows-1252.txt 1.6 KB windows-1252, LF Text encoded as Windows-1252, the charset mislabelled as Latin-1 most often.
Snippets
curl -O https://loremfile.dev/txt/windows-1252.txt
<a href="https://loremfile.dev/txt/windows-1252.txt">download</a>

File names follow the naming grammar. Verify a download against sha256sums.txt.