Elysia Tools

Browse tools, examples, visual explainers, and topic guides from one clear workspace.

Top Categories

Hubs

Language
ZHESPTRUFRDEEN

Elysia Tools

Navigation

Media

Inspect BZip2 completion and TAR structure

Check the compressed stream, directory relationships and header checksums without extracting payloads.

Samples

Entries inside this sample collection

FileSimple

Sample Archive

A BZip2 compressed archive sample for in-browser preview

Difficulty

1/10

Tags

bz2, archive, compressed

sample-archive.tar.bz2

BZ2 · 721 B

Download fileOpen in new tab
fileSize
721 B
format
BZip2
extension
.tar.bz2

Tools

Tools frequently paired with this sample

Related

Related sample collections

Related

Related workflows

Tool usage guide

Sample-focused context for search and workflow understanding

Overview

The 721-byte file is a BZip2 stream containing a 6,144-byte TAR. Use this fixture to distinguish successful decompression from archive organization and header integrity.

Limits

The inspection does not install software, execute payloads, render files or verify copyright. It is not a benchmark or a general guarantee for untrusted archives.

How it works

  1. 1Sample Archive · Download file / Open in new tab
  2. 2Download the named card as sample-archive.tar.bz2. Run Python 3 snippets locally in sequence. Input is capped at 10,000 bytes and decompressed output at 100,000; member headers remain in memory, without shell extraction or reading file bodies.

Edge cases & common failures

  • Limits

    The inspection does not install software, execute payloads, render files or verify copyright. It is not a benchmark or a general guarantee for untrusted archives.

Examples

1. Check complete bounded decompression

How to use

Sample Archive — Download the named card as sample-archive.tar.bz2. Run Python 3 snippets locally in sequence. Input is capped at 10,000 bytes and decompressed output at 100,000; member headers remain in memory, without shell extraction or reading file bodies.

from pathlib import Path
import bz2
with Path("sample-archive.tar.bz2").open("rb") as f:
    b = f.read(10001)
assert len(b) == 721 and b[:4] == b"BZh9"
d = bz2.BZ2Decompressor()
raw = d.decompress(b, max_length=100001)
assert len(raw) <= 100000 and d.eof and not d.unused_data
print(len(b), len(raw), d.eof)

Outcome

The first four bytes are BZh9. The decoder reaches EOF with no unused trailing bytes and returns 6,144 bytes. A filename suffix alone would not establish these facts.

2. Reconstruct directory relationships

How to use

Sample Archive — Download the named card as sample-archive.tar.bz2. Run Python 3 snippets locally in sequence. Input is capped at 10,000 bytes and decompressed output at 100,000; member headers remain in memory, without shell extraction or reading file bodies.

import tarfile, io
from pathlib import PurePosixPath
archive = tarfile.open(fileobj=io.BytesIO(raw), mode="r:")
members = archive.getmembers()
assert len(members) == 6 and all(x.isfile() or x.isdir() for x in members)
files = [x for x in members if x.isfile()]
dirs = [x for x in members if x.isdir()]
assert all(x.size == 0 for x in dirs)
assert all(not PurePosixPath(x.name).is_absolute() and ".." not in PurePosixPath(x.name).parts for x in members)
print(len(files), len(dirs))
print(sum(str(PurePosixPath(x.name).parent)=="docs" for x in files))
print(sum(str(PurePosixPath(x.name).parent)=="images" for x in files))

Outcome

Six entries consist of four regular files and two directories. docs has two immediate file children; images has one; README.txt is a root file. Directory entries themselves have zero payload size.

3. Verify TAR header checksums

How to use

Sample Archive — Download the named card as sample-archive.tar.bz2. Run Python 3 snippets locally in sequence. Input is capped at 10,000 bytes and decompressed output at 100,000; member headers remain in memory, without shell extraction or reading file bodies.

checked = 0
for member in members:
    header = raw[member.offset:member.offset+512]
    assert len(header) == 512
    stored = int(header[148:156].strip(b"\0 "), 8)
    calculated = sum(header[:148]) + 8*32 + sum(header[156:])
    assert stored == calculated
    checked += 1
print(checked)
archive.close()

Outcome

All six stored header checksums equal the unsigned byte sums calculated with the eight checksum bytes replaced by spaces. This detects header corruption in this fixture, not authenticity or safety of member contents.

FAQ

Does a valid checksum mean the archive is trustworthy?

No. A checksum verifies an arithmetic relationship, not origin, permission or harmlessness.

Hub

Infer JSON Schema from Samples and Spreadsheets

Derive a reviewable JSON Schema draft from representative JSON samples or XLSX rows, then inspect types, requiredness, nulls, and outliers before treating it as a contract.

Hub

Stream Copy, Remux, and Media Packaging

Inspect streams, remux containers, trim by timestamp, mux tracks, softmux subtitles, embed cover art, and batch rewrap media while preserving source quality.

Hub

One Photo to a Platform-Ready Social Media Image Kit

Turn a single master photo into correctly sized crops for Instagram, TikTok, LinkedIn, and X, preview caption-safe zones, build split grids and collages, and add clearly named styled variants when the channel voice allows them.

Hub

Podcast Episode Audio and RSS Publication Preflight

Check one finished podcast episode against its RSS entry, verify final-file size, type and duration, and separately test public media access and player behavior before publication.

Home
Tools3215
Samples593
Visualizations472
Viewers103
Hubs239
Tags333
Images, Audio & Video657

Image, audio, and video processing, conversion, and optimization tools

Math, Date & Finance647

Calculators, numerics, date logic, statistics, and finance tools

Design & Color298

Color, layout, graphics, visual styling, and design helper tools

Text & Writing209

Writing, cleanup, formatting, extraction, and text analysis tools

Developer & Web194

Developer utilities, networking, web debugging, and automation helpers

Conversion & Encoding175

Format, file, archive, unit, and encoding conversion tools

Lead Generation Quiz Launch and Contact Handoff
Memorial Drafts: Family Review and Print Handoff
Private Habit Records: Backup, Restore and Sharing Review
Article to X and LinkedIn Drafts: Fact Review and Handoff
Markdown Interactive Deck Review and Offline Handoff

© 2026 Elysia Tools. All rights reserved.

DocsPricingAboutTerms of ServicePrivacy PolicyCookiesContact

Media

Batch Image Info Viewer

View basic information for multiple images at once - dimensions, format, file size, and metadata presence

Media

Batch EXIF Viewer

View EXIF metadata from multiple images at once

Media

3D Model Viewer & Inspector

Upload an STL, OBJ, GLB or glTF model: exact vertex/triangle counts, bounding-box dimensions, materials, animations and node tree, plus an interactive Three.js viewer (rotate, zoom, shaded/wireframe/normals).

Media

Audio Metadata Viewer

View all metadata tags of an audio file

Development

Hex Editor (File Viewer)

Upload any binary file and inspect it as a classic hex dump with offset, hex bytes, and ASCII columns (read-only)

Development

Game Save Viewer

Drop any game save file — Minecraft NBT, Unreal Engine GVAS, Palworld containers, JSON/XML/INI/Lua text saves, SQLite profiles — and get the detected format, engine versions, key progress fields and a bounded structural tree.

Media

Audio Preview Snippets

Generate short preview snippets from multiple timestamps

Media

Audio Change Bitrate

Re-encode audio to a new bitrate while keeping the same format

Media

APK Viewer Samples

A tiny ZIP with an .apk extension, useful for testing archive-versus-application validation.

Media

ZIP/.cab Format Mismatch Sample

A ZIP payload named .cab for file-format mismatch inspection; not a valid CAB baseline

Media

CBZ Viewer Samples

A CBZ archive sample for in-browser preview

Media

GZ Viewer Samples

A GZip compressed archive sample for in-browser preview

Media

ISO Viewer Samples

A ISO archive sample for in-browser preview

Media

JAR Viewer Samples

A JAR archive sample for in-browser preview