LZMA Compress & Decompress
Compress text with LZMA (the algorithm behind .lzma and 7z) into a Base64 string, or decompress Base64 LZMA data back to text — with size and ratio stats. Runs in your browser; nothing is uploaded.
Input
Only used when compressing.
Output
Output
Stats
| Property | Value |
|---|---|
| No data yet | |
Was this helpful?
More ways to use this tool
REST API
curl -X POST https://api.iotools.cloud/v1/tool/lzma-compression \
-H "Authorization: Bearer YOUR_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"mode": "compress",
"inputText": "hello hello hello hello",
"level": "5"
}'Swap in your own key from your account. The tool's fields are the body — no wrapper.
Ask an AI agent
Use the IOTools `lzma-compression` tool (LZMA Compress & Decompress) on this input:
YOUR_INPUT_HEREPaste this at any agent connected to the IOTools MCP server, then add your input.
Embed widget
<iframe
src="https://iotools.cloud/embed/lzma-compression/"
width="100%" height="520" frameborder="0" scrolling="no" loading="lazy"
title="LZMA Compress & Decompress — iotools.cloud"
sandbox="allow-scripts allow-forms allow-same-origin allow-downloads allow-popups allow-popups-to-escape-sandbox"
allow="clipboard-write"
style="width:100%;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden"></iframe>
<script src="https://iotools.cloud/embed.js" async></script>Drop this into your own page — free, no key required, just a link back.
| Cost per API/MCP call | From 5 credits |
|---|---|
| Need more credits? | View pricing |
Also available with
Guides
Compress text with LZMA — the algorithm behind .lzma files and 7-Zip's archives — and get the result as a Base64 string you can paste anywhere, or decompress Base64 LZMA data back to readable text. Everything runs in your browser; nothing is uploaded.
How to use it
- Choose Compress or Decompress.
- Paste your text (or the Base64 LZMA data) into the input box.
- When compressing, pick a level from 1 (fastest) to 9 (smallest output).
- Copy or download the result. A stats table shows original and compressed sizes and the ratio.
Good to know
- Output is a standard
.lzma("LZMA alone") stream, Base64-encoded so it survives copy and paste. - LZMA shines on repetitive text such as logs, JSON and source code; very short inputs can come out larger because of the 13-byte header.
- Decompressing data that isn't valid LZMA shows an error instead of garbage.
- The same tool is available through the API.
lzmacompressdecompresscompression7zbase64archive