TXT (Văn bản thuần)
TXT là định dạng tệp đơn giản nhất — văn bản thuần không có định dạng, phông chữ hay siêu dữ liệu. Mọi hệ điều hành, trình soạn thảo và ngôn ngữ lập trình đều đọc được.
Loại MIME
text/plain
Loại
Văn bản
Nén
Không mất dữ liệu
Ưu điểm
- + 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
Nhược điểm
- − No formatting, images, or structured data
- − Character encoding must be known to display correctly
- − Not suitable for documents that need visual presentation
Khi nào nên dùng .TXT
Sử dụng TXT cho ghi chú đơn giản, tệp cấu hình, nhật ký, README và bất kỳ nội dung nào cần khả năng truy cập tối đa.
Chi tiết kỹ thuật
Tệp TXT chứa byte biểu diễn ký tự trong một mã hóa cụ thể (UTF-8, ASCII, ISO-8859-1). Kết thúc dòng khác nhau: LF (Unix/macOS), CRLF (Windows), CR (Mac cũ). Không có siêu dữ liệu hay cấu trúc.
Lịch sử
Tệp văn bản thuần có nguồn gốc từ bảng mã ASCII (1963). Chúng là tệp máy tính sớm nhất. UTF-8 (1993) mở rộng văn bản thuần cho mọi ngôn ngữ.
Chuyển đổi từ .TXT
Chuyển đổi sang .TXT
Định dạng liên quan
Thuật ngữ liên quan
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 …