Skip to content
Safetensors Studio

Open a safetensors file and see exactly what’s inside

View tensors, byte offsets and metadata, edit values in a spreadsheet grid, change dtypes and convert to or from PyTorch, NumPy and GGUF. Everything runs in your browser, so the file never leaves your computer.

Length8 bytes
u64 LE
Drop a model file here
.safetensors, or .bin .pt .pth .ckpt .npz .npy .gguf to convert

Remote files are streamed with HTTP range requests, so only the header and the tensors you open are downloaded.

Built for huge files

Only the header is read on open. Values load as you scroll, and unchanged tensors are copied byte-for-byte when you save.

Spreadsheet editing

Select a tensor to edit its values in a grid. Copy and paste ranges to and from Excel or Google Sheets.

Any number of dimensions

Pick two axes to project onto rows and columns, then slice or reduce the rest. Heatmap and histogram tabs follow the same view.

Convert formats and dtypes

Turn .bin, .ckpt, .npz and .gguf into safetensors, or export to .npz and .pt. Cast to F16, BF16, FP8 and more.

Know the model

Model family is identified from tensor names and shapes, with parameter count, layer details and a RAM estimate.

Rename with regex

Chain find-and-replace rules with capture groups, preview every change and catch name collisions before you apply.

Hashes

SHA-256, AutoV1, AutoV2, CRC32, a weights-only hash that ignores metadata, and per-tensor hashes.

Compare two files

The diff tool matches tensors by name and reports cosine similarity, max and mean difference.

How to edit a safetensors file

  1. Open the fileDrop it on this page or paste a URL. The tensor list appears instantly, even for 70 GB checkpoints.
  2. Make your changesEdit metadata, rename tensors, change dtypes, edit values or add new tensors. Changed items are marked in the list.
  3. SaveChoose Save .safetensors. Chrome and Edge write straight to disk; other browsers download the file.

Questions

Are my files uploaded anywhere?

No. Your browser reads the file directly with the File API and nothing is sent to a server. You can disconnect from the internet after the page loads and it keeps working.

Can it open multi-gigabyte models?

Yes. Opening a file reads only the 8-byte length and the JSON header. Tensor values are fetched in small blocks as you scroll the grid. Saving streams the result, copying untouched tensors straight from the source file.

How do I convert a .bin, .pt or .ckpt to safetensors?

Drop the PyTorch file here and choose Save .safetensors. The checkpoint’s pickle data is interpreted by a small reader that only rebuilds tensors, so no code inside the file is ever executed. Legacy (pre-1.6) PyTorch files are not supported.

Which dtypes can I convert between?

float32, float16, bfloat16, float64, float8 e4m3fn and e5m2, int8, int16, int32, int64, uint8 and bool. Floats use round-to-nearest-even, FP8 e4m3 saturates at ±448, and integers round and clamp to their range. The grid previews the converted values before you save.

How is the model family detected?

From tensor names and shapes, such as model.layers.N.self_attn.q_proj for Llama-style models or double_blocks for Flux. It recognizes common LLMs, Stable Diffusion, SDXL, SD3, Flux, VAEs, CLIP, T5, LoRA adapters and more. Detection is a best guess, not a guarantee.

Can I view a Hugging Face model without downloading it?

Yes. Paste the file’s URL. Only the header and the tensors you open are fetched. Gated or private repositories need to be downloaded first because the browser cannot send your access token.

What does “JSON header size” mean?

A safetensors file starts with an 8-byte little-endian number giving the size of a JSON header. The header lists every tensor’s dtype, shape and byte range. Tensor data follows immediately after. The guide explains the layout in detail.

Convert data types

Changes are previewed in the grid and applied when you save.

Rename tensors

Rules run top to bottom on every tensor name. Use JavaScript regex syntax; $1 inserts a capture group.

Add tensor

The new tensor is appended to the file when you save.