Mozilla LZ4

From Just Solve the File Format Problem
(Difference between revisions)
Jump to: navigation, search
(Created page with "{{FormatInfo |formattype=electronic |subcat=Compression |extensions={{ext|jsonlz4}} }} '''Mozilla LZ4''' (also called '''jsonlz4''' or '''mozLz4''') is a compressed file forma...")
 
(dejsonlz4 software and resulting more file format structure added)
 
Line 2: Line 2:
 
|formattype=electronic
 
|formattype=electronic
 
|subcat=Compression
 
|subcat=Compression
|extensions={{ext|jsonlz4}}
+
|extensions={{ext|jsonlz4}}, {{ext|mozlz4}}
 
}}
 
}}
'''Mozilla LZ4''' (also called '''jsonlz4''' or '''mozLz4''') is a compressed file format that may be used by Mozilla Firefox for bookmark files, and possibly other things. It is based on [[LZ4]], and usually decompresses to [[JSON]] format. See also [[Firefox bookmarks]].
+
'''Mozilla LZ4''' (also called '''jsonlz4''' or '''mozLz4''') is a compressed file format that may be used by Mozilla Firefox for bookmark files, and possibly other things. The filename extension "jsonlz4" is used for bookmarks and "mozlz4" for others. It is based on [[LZ4]], and usually decompresses to [[JSON]] format. See also [[Firefox bookmarks]].
  
 
== Identification ==
 
== Identification ==
Files begin with ASCII "{{magic|mozLz40}}", followed by a NUL byte.
+
Files begin with ASCII "{{magic|mozLz40}}", followed by a NUL byte. Next the size of the original file is stored. At offset 12 the compressed data begins.
  
 
== Software ==
 
== Software ==
 
* [https://gist.github.com/Tblue/62ff47bef7f894e92ed5 MozLz4a compression/decompression utility] ([[Python]])
 
* [https://gist.github.com/Tblue/62ff47bef7f894e92ed5 MozLz4a compression/decompression utility] ([[Python]])
 +
* [https://github.com/avih/dejsonlz4 decompression utility dejsonlz4]
  
 
[[Category:JSON based file formats]]
 
[[Category:JSON based file formats]]
 
[[Category:Mozilla]]
 
[[Category:Mozilla]]

Latest revision as of 18:28, 26 November 2018

File Format
Name Mozilla LZ4
Ontology
Extension(s) .jsonlz4, .mozlz4

Mozilla LZ4 (also called jsonlz4 or mozLz4) is a compressed file format that may be used by Mozilla Firefox for bookmark files, and possibly other things. The filename extension "jsonlz4" is used for bookmarks and "mozlz4" for others. It is based on LZ4, and usually decompresses to JSON format. See also Firefox bookmarks.

[edit] Identification

Files begin with ASCII "mozLz40", followed by a NUL byte. Next the size of the original file is stored. At offset 12 the compressed data begins.

[edit] Software

Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox