StringMash.com

Encoding tools for the web

Base64, URL encoding, hex and binary. Encode and decode in both directions.

12 characters

Twelve of the developer tools below. See them all, or click a result to open its tool with your text. Paste a mystery string and What is it? names it.

Every developer tool

135 converters in 11 groups

Encodings

25 converters

Colour

21 converters
All colour tools

What's here

Encodings and security: Base64, URL encoding, hex and binary, JWT decoding, SHA-256 and MD5, a hash identifier and the mojibake fixer for text garbled by the wrong encoding. A JWT or an API key pasted here is decoded on your device; nothing is sent anywhere.

Networking and hardware: the subnet and CIDR calculators with the binary AND shown, a TCP/IP header decoder, the three-way handshake played segment by segment, common ports, RAID, and electronics from resistor colour codes to Ohm's law.

Computer science for students: sorting and graph search visualisers, Huffman coding, Hamming codes, two's complement, IEEE 754 and boolean algebra. Data formats (JSON to YAML, CSV, XML, Markdown, TOON) and text clean-up tools round it out.

WHERE TO BEGIN

Which encoding do you need?

Four of the encoders convert the same thing at different levels, and picking the wrong one is how you end up staring at a wall of digits when all you wanted was a character's number. Character codes and Unicode code points give you the number behind each character. Binary shows the bits that number is stored as, while Base64 packages the bytes so they survive email, a URL or JSON.

Debugging a character that won't display? That's a code point problem. Moving data through something that only handles text is a job for Base64, and reading raw bytes off a wire protocol means hex.

GOOD TO KNOW

Encoding is not encryption

An encoding changes how data is written so it survives the trip, and anyone can reverse it. That's the point: the recipient has to be able to.

Keeping something secret needs encryption and a key. Base64 in particular turns up in places where someone hoped it was hiding something, and it never was.

Coming next

HTML entities, TOML, query strings, JSON diff

Questions

Which character set should I use?

UTF-8, unless you know the text came from an older system. It covers every script and it's what the web assumes.

Why is my Base64 a third bigger than the file?

Four characters carry three bytes. That's the cost of passing through text-only systems.

Can I chain conversions?

Not yet. For now, copy the result of one converter into the next. Base64 and then binary is a common pair.

Sources

Added . Last updated and reviewed . What's new