All Tools

Byte Converter

Convert between bytes, KB, MB, GB, TB and their binary (KiB, MiB, GiB) equivalents. Enter a value in any unit and all others update instantly. Covers both decimal (SI) and binary (IEC) prefixes so you always know the exact difference between a megabyte and a mebibyte.

UnitAbbreviationSystemValueCopy
ByteBSI1000000
KilobyteKBSI1000
MegabyteMBSI1
GigabyteGBSI0.001
TerabyteTBSI1.000000e-6
PetabytePBSI1.000000e-9
KibibyteKiBIEC976.5625
MebibyteMiBIEC0.9536743164
GibibyteGiBIEC0.0009313225746
TebibyteTiBIEC9.094947e-7
PebibytePiBIEC8.881784e-10
Buy me a coffee

SI: 1 KB = 1,000 B • IEC: 1 KiB = 1,024 B

Bits, Bytes & Prefixes

  • 1 KiB = 1,024 bytes (binary, used by OS and RAM); 1 KB = 1,000 bytes (SI, used by storage manufacturers).
  • Hard drive manufacturers use SI (decimal) — that's why a "1 TB" drive shows as ~931 GiB in Windows or macOS.
  • Network speeds are measured in bits per second (Mbps) — divide by 8 to convert to bytes per second (MB/s).
  • Memorise: 1 byte = 8 bits, 1 KB ≈ 1,000 bytes, 1 MB ≈ 1,000,000 bytes, 1 GB ≈ 1,000,000,000 bytes.

Related Tools

XML Formatter

Prettify or minify XML with configurable indentation and syntax highlighting.

Base64 Encoder & Decoder

Encode text to Base64 or decode Base64 strings back to text. Handles UTF-8 and Unicode — instant, no server.

Diff Checker

Compare two pieces of text and see the differences highlighted. Line-by-line diff with added/removed lines clearly marked.

JSON Formatter & Validator

Format, pretty-print, and validate JSON with customizable indentation and key sorting. Instant feedback on syntax errors.

JSON to CSV Converter

Convert a JSON array to CSV format. Customizable delimiter, header row, and field quoting. Download as .csv.

Number Base Converter

Convert numbers between binary (base 2), octal (8), decimal (10), and hexadecimal (16) instantly.

Regex Tester

Test and debug regular expressions against sample text. See all matches, capture groups, and flags explained.

SHA Hash Generator

Generate SHA-1, SHA-256, SHA-384, and SHA-512 cryptographic hashes from text or files. Computed locally in your browser.

Unix Timestamp Converter

Convert Unix timestamps to human-readable dates and times, or convert any date to its Unix timestamp.

URL Encoder & Decoder

Percent-encode URLs and query strings, or decode URL-encoded strings back to readable text.

SQL Formatter

Prettify or minify SQL queries with automatic keyword uppercasing, clause indentation, and newlines.

JSON to TypeScript

Convert JSON to TypeScript interface or type alias definitions recursively. Handles nested objects, arrays, and null values.

.gitignore Generator

Pick your tech stack and get a ready-made .gitignore file with all standard exclusions per technology.

String Escape Tool

Escape or unescape strings for JavaScript, JSON, HTML, Regex, URL, and CSS in one click.

HTML Entity Encoder

Encode or decode HTML entities — convert special characters to & references and back.

JWT Decoder

Decode and inspect JSON Web Tokens — header, payload, and expiry — without a secret.

Cron Expression Explainer

Parse and explain cron expressions in plain English. Shows next 5 run times.

HTML Formatter

Prettify or minify HTML with configurable indentation and syntax-highlighted output. Nothing sent to any server.