TXT(纯文本)
TXT 是最简单的文件格式——纯文本,没有格式、图像或元数据。它仅包含以 ASCII、UTF-8 或其他字符编码存储的字符数据。纯文本文件具有通用可读性,是许多其他格式的基础。
MIME 类型
text/plain
类型
文本
压缩
无损
优点
- + Opens in every text editor on every operating system
- + Zero overhead — file size equals content size
- + No risk of embedded malware or macros
- + Perfect for version control, piping, and scripting
缺点
- − No formatting, images, or structured data
- − Character encoding must be known to display correctly
- − Not suitable for documents that need visual presentation
何时使用 .TXT
将 TXT 用于日志、配置备注、快速数据导出以及任何不需要格式的内容。
技术细节
.txt 文件是以特定编码表示字符的字节序列。没有头信息、元数据或结构,仅有换行符(Unix/macOS 使用 LF,Windows 使用 CR+LF)。
历史
纯文本文件的历史早于现代计算机,ASCII 于 1963 年标准化。1993 年创建的 UTF-8 将纯文本扩展为支持所有书写系统,并成为网络上的主流编码。
从 .TXT 转换
转换为 .TXT
相关格式
相关术语
Learn More
How to Generate Strong Random Passwords
Password generation requires cryptographic randomness and careful character selection. This guide covers the principles behind strong password generation, entropy calculation, …
How to Merge PDF Files Without Losing Quality
Combining multiple PDF documents into a single file is one of the most common document tasks. This guide walks you …
JSON vs YAML vs TOML: Choosing a Configuration Format
Configuration files are the backbone of modern applications. JSON, YAML, and TOML each offer different trade-offs between readability, complexity, and …
Meta Tags for SEO: Title, Description, and Open Graph
Meta tags control how your pages appear in search results and social media shares. This guide covers the essential meta …
Text Encoding Explained: UTF-8, ASCII, and Beyond
Text encoding determines how characters are stored as bytes. Understanding UTF-8, ASCII, and other encodings prevents garbled text, mojibake, and …
How to Format and Validate JSON Data
Malformed JSON causes silent failures in APIs and configuration files. Learn how to format, validate, and debug JSON documents to …