Compress
Compress[expr] gives a compressed representation of expr as a string.
Examples
Compress an expression:
Compress[Range[1000]]
(* "1:eJxTTMoPSmNkYG..." *)Decompress back:
Uncompress[Compress[{1, 2, 3}]]
(* {1, 2, 3} *)Please visit the official Wolfram Language Reference for more details.