
freeze
Generate PNG, SVG, and WebP images of code and terminal output with syntax highlighting and customizable styling.
Freeze is a CLI tool that generates images of code and terminal output in PNG, SVG, and WebP formats. It supports syntax highlighting for various programming languages with auto-detection based on file extensions or content analysis. Users can capture static code files or execute terminal commands with the --execute flag to generate images of ANSI output.
The tool includes an interactive TUI mode for configuration and extensive customization options. Users can modify themes, fonts, window styling, borders, shadows, padding, margins, and line numbers. It supports embedding custom font files and offers preset configurations like 'base', 'full', and user-defined configs stored in ~/.config/freeze/user.json.
Freeze integrates with tmux for capturing TUI applications using tmux capture-pane. Configuration can be managed through JSON files or command-line flags, with all styling options available through both methods. The tool is particularly useful for developers creating documentation, tutorials, or sharing code snippets with consistent visual formatting.
Installation
# via Homebrew
brew install charmbracelet/tap/freeze
# via Go
go install github.com/charmbracelet/freeze@latest
# via Arch Linux
yay -S freeze


Alternatives & related tools
Docker CLI
Source repository for the Docker command-line client, written in Go and built with docker buildx bake, with cross-platform and glibc/musl build targets.
Popeye
Read-only scanner that lints live Kubernetes clusters for misconfigurations, unused resources, and over/under allocation, with console, JSON, and HTML reports.
Krew
Package manager for kubectl plugins: discover, install, and manage plugins from a central index, similar to apt, dnf, or brew.
nap
Code snippet manager with CLI and TUI for creating, organizing, and accessing snippets in the terminal
flyctl
Command-line interface for fly.io that authenticates accounts, lists apps, and checks app status; also invoked as fly.
add a badge to your README
Maintain freeze? Show that it's featured on trmn. The badge links back to this page.
[](https://www.trmn.sh/tools/freeze?utm_source=badge)<a href="https://www.trmn.sh/tools/freeze?utm_source=badge"><img src="https://www.trmn.sh/badge/freeze.svg" alt="Featured on trmn" height="20"></a>