Skip to main content
My Upkaran
100% Client-Side • UTF-8 / UTF-16 / UTF-32

Online Text (String) Size Calculator (In Bytes)

Instantly measure exact string byte size across encodings, API payload formats, storage limits, and individual Unicode characters.

UTF-8 Size (Web Standard)

108 Bytes

108 B • 864 bits

UTF-16 Size (JS / Java)

208 Bytes

104 UTF-16 code units

UTF-32 Size (Fixed 4B)

412 Bytes

103 Unicode code points

Live Gzip Wire Size

—

Type text to compress

Words: 19Lines: 1No-Space Chars: 85

Encoded & Character Composition

JSON String Size110 B
URL Encoded Size166 B
Base64 Encoded Size144 B
1B ASCII / Multi-Byte101 / 2

Developer Quota & Storage Fit (UTF-8)

SMS Segment (GSM / ASCII)67.5% (160 B)
MySQL Legacy Index (utf8mb4)14.1% (767 B)
HTTP Cookie Max Size2.6% (4 KiB)
AWS SQS Message Limit0% (256 KiB)

Per-Character UTF-8 Byte Inspector

Spot 2–4 byte characters, emojis, and hidden zero-width characters (showing first 96 of 103).

H1B • U+004848
e1B • U+006565
l1B • U+006C6C
l1B • U+006C6C
o1B • U+006F6F
SPACE1B • U+002020
M1B • U+004D4D
y1B • U+007979
U1B • U+005555
p1B • U+007070
k1B • U+006B6B
a1B • U+006161
r1B • U+007272
a1B • U+006161
n1B • U+006E6E
SPACE1B • U+002020
🚀4B • U+1F680F0 9F 9A 80
SPACE1B • U+002020
—3B • U+2014E2 80 94
SPACE1B • U+002020
p1B • U+007070
a1B • U+006161
s1B • U+007373
t1B • U+007474
e1B • U+006565
SPACE1B • U+002020
a1B • U+006161
n1B • U+006E6E
y1B • U+007979
SPACE1B • U+002020
t1B • U+007474
e1B • U+006565
x1B • U+007878
t1B • U+007474
,1B • U+002C2C
SPACE1B • U+002020
J1B • U+004A4A
S1B • U+005353
O1B • U+004F4F
N1B • U+004E4E
,1B • U+002C2C
SPACE1B • U+002020
o1B • U+006F6F
r1B • U+007272
SPACE1B • U+002020
c1B • U+006363
o1B • U+006F6F
d1B • U+006464
e1B • U+006565
SPACE1B • U+002020
t1B • U+007474
o1B • U+006F6F
SPACE1B • U+002020
c1B • U+006363
a1B • U+006161
l1B • U+006C6C
c1B • U+006363
u1B • U+007575
l1B • U+006C6C
a1B • U+006161
t1B • U+007474
e1B • U+006565
SPACE1B • U+002020
e1B • U+006565
x1B • U+007878
a1B • U+006161
c1B • U+006363
t1B • U+007474
SPACE1B • U+002020
U1B • U+005555
T1B • U+005454
F1B • U+004646
-1B • U+002D2D
81B • U+003838
,1B • U+002C2C
SPACE1B • U+002020
U1B • U+005555
T1B • U+005454
F1B • U+004646
-1B • U+002D2D
11B • U+003131
61B • U+003636
SPACE1B • U+002020
&1B • U+002626
SPACE1B • U+002020
U1B • U+005555
T1B • U+005454
F1B • U+004646
-1B • U+002D2D
31B • U+003333
21B • U+003232
SPACE1B • U+002020
b1B • U+006262
y1B • U+007979
t1B • U+007474
e1B • U+006565
String size in bytes

Calculate Exact Text & String Byte Size Across UTF-8, UTF-16 & Encodings

Measure exact string size in bytes, bits, KB, and KiB instantly as you type or paste. Compare UTF-8, UTF-16, UTF-32, ASCII, JSON-escaped, URL-encoded, Base64, and live Gzip compressed sizes right inside your browser with zero server uploads.

UTF-8, UTF-16 & UTF-32 Comparison

Inspect how emojis, accented letters, and multilingual text expand across UTF-8, UTF-16 (JavaScript string length), UTF-32, and ASCII encodings.

API, Storage & Encoding Sizes

View exact byte counts for JSON.stringify strings, URL-encoded (percent-encoded) strings, Base64 output, and real browser Gzip compression.

Limit & Quota Budget Meters

Check usage against common developer limits like Browser Cookies (4 KB), MySQL VARCHAR(255), SMS segments, and AWS SQS / DynamoDB items.

Per-Character Byte Inspector

Inspect each Unicode code point (U+XXXX), exact UTF-8 hex byte sequence, and 1–4 byte footprint to spot hidden multi-byte or invisible characters.

How to Use String Size Calculator (Bytes)

  1. 1Paste or type any string, JSON snippet, code, or text into the input editor — or drop a .txt / .json file.
  2. 2Review real-time byte sizes across UTF-8, UTF-16, UTF-32, ASCII, Base64, JSON, URL encoding, and Gzip.
  3. 3Use the Quota & Storage Meters to check whether your payload fits database columns, cookies, or API limits.
  4. 4Open the Per-Character Byte Inspector to check individual code points and UTF-8 hex bytes.

Popular Use Cases

  • ✓Checking JSON API request and response payload byte limits (SQS, DynamoDB, webhooks)
  • ✓Debugging database truncation in PostgreSQL, MySQL utf8mb4 columns, and indexed keys
  • ✓Measuring browser cookie (4 KB) and localStorage entry footprints accurately
  • ✓Spotting zero-width spaces and 4-byte emoji characters before sending SMS or storing data
Need a custom web tool or SEO-optimized website?Explore Web Services →

Frequently Asked Questions — String Size Calculator (Bytes)

Why does UTF-8 byte size differ from JavaScript string length?+

JavaScript's .length counts 16-bit UTF-16 code units, whereas UTF-8 uses 1 byte for ASCII characters and 2 to 4 bytes for accented characters, non-Latin scripts, and emojis.

What is the difference between KB (1,000 B) and KiB (1,024 B)?+

Decimal kilobytes (KB) divide bytes by 1,000 (used by storage and network specs), while binary kibibytes (KiB) divide by 1,024 (used by OS memory reporting). This tool displays both.

How is live Gzip compressed byte size calculated?+

On modern browsers supporting the Compression Streams API, your string's UTF-8 bytes are compressed locally with Gzip in memory so you can compare uncompressed vs. wire size.

Does any pasted string or uploaded file leave my device?+

Never. All encoding checks, hex byte inspection, and compression happen 100% locally inside your browser.