Logo

Fast Text Format

Fast Text Format Tools

The ultimate collection of lightning-fast utilities to format, convert, and streamline your workflow.

Favorites

Recently Used

Recently Added

Text & Compare

Code & Formatting

Base64 to File Decoder

Decode Base64 strings or Data URIs back into downloadable files (images, PDFs, documents, audio) with instant live preview.

Code Beautifier & Minifier

Beautify, validate, and minify your JSON, JavaScript, CSS, and HTML code into clean, readable syntax.

Config Converter (TOML / INI / .env / JSON)

Convert configuration files seamlessly between TOML, INI, Java .properties, .env, YAML, and JSON formats with nested key flattening and unflattening.

CSS Formatter & Minifier

Format, beautify, validate, and minify CSS code with custom indentation.

CSS Visual Generators

Visually generate and export CSS code for Box Shadows, Gradients, Flexbox, and Grid layouts.

CSV to JSON/SQL

Convert CSV data to JSON arrays or SQL INSERT statements.

cURL to Fetch

Easily convert cURL commands into JavaScript Fetch API code.

Docker Run to Compose

Convert docker run CLI commands into clean, production-ready docker-compose.yml configuration files.

GraphQL Explorer & Formatter

Beautify, minify, validate, and inspect GraphQL queries, mutations, subscriptions, and SDL schemas with AST operation & variable analysis.

HTML & XML Formatter

Beautify, format, and minify HTML and XML code with customizable indentation and syntax cleanup.

HTML to JSX

Client-side tool to transform HTML tags/attributes into React-compatible JSX.

HTML to Tailwind CSS

Convert standard inline styles and CSS declarations into Tailwind CSS utility classes with live preview.

JS Obfuscator

Transform readable JavaScript code into unreadable, minified code to protect logic.

JSON Schema Validator

Validate JSON payloads against JSON Schema specifications (Draft-07, 2020-12, Draft-04) with real-time error paths, keyword explanations, and line feedback.

JSON Stringify & Parse (.env Ready)

One-click minify and stringify multi-line JSON objects into escaped strings ready for .env files, CLI args, or code literals, or parse escaped strings back into formatted JSON.

JSON to Code

Convert JSON objects into typed models for various languages.

JSON Tree Viewer

Visually inspect, expand, collapse, search, and filter complex JSON payloads with path inspection.

JSONPath & JQ Evaluator

Query, filter, extract, and transform JSON payloads in real-time using standard JSONPath (RFC 9535) or JQ-style expressions with table and visual path views.

Markdown Editor & Previewer

Write, edit, and preview Markdown in real-time with live HTML preview, syntax styling, and HTML export.

OpenAPI / Swagger Viewer & Validator

Client-side interactive explorer and validator for OpenAPI 3.0/3.1 and Swagger 2.0 specifications in YAML or JSON format.

Semantic JSON Diff

Compare two JSON documents semantically, ignoring key ordering, formatting, and whitespace differences, with visual change highlighting and RFC 6902 JSON Patch export.

Source Map Viewer

Client-side tool to upload a .map file and de-minify stack traces.

SQL Formatter

Format, beautify, and minify SQL queries across multiple SQL dialects.

String Escape & Unescape

Safely escape (and unescape) quotes, backslashes, and newlines for use in JSON strings, SQL queries, HTML, and Java/C#.

SVG Optimizer

Minify and clean raw SVG code.

SVG to PNG/WEBP

Client-side tool utilizing an HTML canvas to rasterize SVG code or files into downloadable images.

XML Utilities

Format and minify XML strings.

YAML <-> JSON

Instantly convert between YAML and JSON.

Data & Crypto

Generators & Utilities

.gitignore Generator

Generate comprehensive, community-tested .gitignore files for any combination of programming languages, frameworks, operating systems, and IDEs.

ASCII Art Generator

Convert text into stylish ASCII art banners, figlet typography, and decorative monospace text.

Barcode Generator

Client-side tool using a canvas to generate linear barcodes (UPC, EAN, Code39) from text.

CHMOD Permissions Calculator

Calculate, convert, and inspect Linux file permissions with visual octal and symbolic modes.

Color Contrast

Check WCAG color contrast accessibility.

Color Converter & Picker

Pick colors and convert between HEX, RGB, HSL, HSV, and CMYK formats with live preview and palette tools.

Cron Expression Builder & Decoder

Build, edit, and decode cron schedules into human-readable descriptions with upcoming execution dates.

EXIF Data Viewer & Stripper

View, inspect, and strip EXIF, camera, and GPS location metadata from JPEG, PNG, and WebP images locally for complete privacy.

Favicon Generator

Convert standard images into universally compatible .ico files and generate standard web app icon sizes.

Image Base64

Convert image files into Base64 Data URI strings and CSS background-image properties.

Image Color Palette Extractor

Drop any image to extract its dominant HEX, RGB, and HSL color palette client-side, with interactive image eyedropper and one-click CSS variables, Tailwind, and JSON export.

Image Compressor

Compress and optimize JPEG, PNG, WEBP, and AVIF images locally in your browser.

LLM Token Counter

Calculate token usage, estimate API costs, and inspect color-coded BPE token chunks across OpenAI, Anthropic, Gemini, and Llama models.

Lorem Ipsum Generator

Generate customized dummy placeholder text by paragraphs, sentences, or words for mockups and designs.

Markdown Table Generator

A visual grid editor that allows users to easily add rows/columns and instantly outputs perfectly formatted Markdown table syntax.

Meta Tag & Open Graph Generator

Generate and visually preview SEO meta tags, Twitter Cards, and Facebook Open Graph tags.

Mock Data Generator

Generate hundreds of rows of fake test data (names, emails, addresses, dates, credit cards) and export it as CSV, JSON, or SQL INSERT statements for database testing.

Password Generator

Create strong, secure passwords and passphrases using customizable cryptographic algorithms.

PDF Toolkit

Merge, split, extract, rotate, and reorder PDF pages 100% locally in your browser.

QR Code Generator

Create scalable, customizable, and scannable QR codes from text or URLs with instant download.

Regex Tester & Builder

Test regular expressions with real-time match & capture group highlighting, syntax explanation breakdown, and multi-string test modes.

Robots.txt Generator

Build valid robots.txt rules, crawler directives, and block AI scrapers.

ULID Generator & Decoder

Generate and inspect Universally Unique Lexicographically Sortable Identifiers (ULIDs) with millisecond precision, monotonic ordering, and timestamp analysis.

UUID / GUID Generator

Instantly generate universally unique identifiers (UUID/GUID v1, v4, v7) in bulk with custom formatting.

XML Sitemap Generator

Construct valid XML sitemaps with custom URLs, change frequencies, and priorities for search engines.

Finance & Units

Networking

LLM Token Counter

Calculate token usage, estimate API costs, and inspect color-coded BPE token chunks across OpenAI, Anthropic, Gemini, and Llama models.

Total Tokens 0
Characters 0
Words 0
Tokens / Word 0.00
Est. Prompt Cost $0.000000
Est. Output Cost $0.000000
0 tokens | 0 words

How to Use

Type or paste text, JSON, or source code into the editor to immediately calculate tokens and estimate API costs across leading LLM architectures. Switch between Raw Text and Color Chunks mode to visually inspect subword Byte-Pair Encoding (BPE) boundaries.

Frequently Asked Questions

What is an LLM token and how does tokenization work?

Large Language Models do not process raw words or individual characters; they process numerical tokens. A token is a chunk of text that can represent a whole word, part of a word (subword), punctuation, or whitespace. In standard English text, 1 token is roughly equivalent to 4 characters or 0.75 words.

What is Byte-Pair Encoding (BPE)?

Byte-Pair Encoding (BPE) is a subword tokenization algorithm that iteratively merges the most frequently occurring byte or character pairs in training corpora into unified vocabulary tokens. Rare words and code symbols break down into multiple smaller tokens, while common words remain single tokens.

What is the difference between cl100k_base and o200k_base tokenizers?

cl100k_base is the 100,000-token vocabulary used by GPT-4 and GPT-3.5 Turbo. o200k_base is OpenAI's newer 200,000-token vocabulary powering GPT-4o and o1. The expanded vocabulary drastically reduces token consumption for non-English languages (by 20-40%) and code syntax.

Why do code, JSON, and non-English text consume more tokens?

Indentation, braces, camelCase identifiers, and non-Latin alphabets often lack single-token representations in traditional vocabularies. As a result, code and multilingual text require multiple byte-level tokens per word or symbol, increasing prompt size and cost.

How are LLM API costs calculated?

Model providers charge different rates for input (prompt) tokens and output (completion) tokens per 1 million tokens. Output tokens are significantly more computationally expensive to generate than input tokens, typically costing 3 to 5 times more.

Does whitespace, indentation, and punctuation count towards tokens?

Yes. Every space, tab, line break, and punctuation mark is counted. Consecutive spaces (such as 2 or 4 spaces used for code indentation) are often grouped into single multi-space tokens, but trailing whitespace still adds to token volume.

No results found

Try adjusting your search terms.