How to reduce Text file size?

Kevinpro

Power Member
Joined
Jul 10, 2018
Messages
677
Reaction score
257
I need to upload in the google text file and there required 2 MB size only and my file size is near 3 MB so how I can reduce this size? Please help
 
If it's a plain text file in .txt format, there aren't too many things you can do. Especially considering that you would need to lose 1/3rd of the size. If it's a formatted text file in .doc format for instance, convert it to .txt.

On a side note:

"In an uncompressed format, each character in a text document is encoded using an 8-digit series of 1s and 0s. 8 digits is enough to encode every character in the English language, plus many other useful characters. But 8 digits is also a lot, and surely there must be a way to encode the same number of characters with fewer digits.

In 1952, David Huffman invented Huffman coding. Huffman coding involves sorting every character in a text document by how often they appear, and then creating a tree with each character on it. A sequence of binary digits will point to a specific place on the tree, and the tree is deliberately constructed so that there's no possibility of mistaking one character for another."


The issue is that if you encode your .txt according to this and the file size gets smaller, it will be unreadable until you decode it into a readable text format.
 
Split up into two text files?
 
Is it a sitemap or something? It depends on what you are trying to achieve. Please give us more details.
 
Only thing u can do is try reduce size. Remove space/newline where possible and some sentence/words too
 
Back
Top