🔐Base64 Encoding
| What it is | When to use | Example |
| Converts binary data to text using 64 characters (A-Z, a-z, 0-9, +, /) | Embedding images in HTML/CSS, email attachments, API data transfer | Hello → SGVsbG8= |
| Rule | Detail |
| Output length | Always ~33% longer than input. Every 3 bytes → 4 Base64 chars |
| Padding | = or == at end means padding was added to complete 4-char group |
| URL-safe variant | Replace + with - and / with _ for use in URLs |
| NOT encryption | Base64 is encoding, not security — anyone can decode it instantly |
🔗URL Encoding (Percent Encoding)
| Character | Encoded |
| Space | %20 |
| ! | %21 |
| # | %23 |
| $ | %24 |
| & | %26 |
| ' | %27 |
| ( | %28 |
| ) | %29 |
| Character | Encoded |
| * | %2A |
| + | %2B |
| , | %2C |
| / | %2F |
| : | %3A |
| = | %3D |
| ? | %3F |
| @ | %40 |
Safe characters (no encoding needed): A-Z a-z 0-9 - _ . ~
🛡️Hash Functions — Quick Reference
| Hash | Output Length | Use For | Security |
| MD5 | 32 hex chars (128-bit) | File checksums, non-security use | Weak — do not use for passwords |
| SHA-1 | 40 hex chars (160-bit) | Legacy systems, Git commits | Weak — deprecated for security |
| SHA-256 | 64 hex chars (256-bit) | File verification, digital signatures | Strong — current standard |
| SHA-512 | 128 hex chars (512-bit) | High-security applications | Very Strong |
| bcrypt | 60 chars | Password storage (with salt) | Best for passwords |
⚠️ Hashes are one-way. You cannot reverse a hash — only compare. Same input always gives same output.
📋JSON Rules & Common Errors
| Valid JSON Data Types |
| String | "hello world" |
| Number | 42 or 3.14 |
| Boolean | true or false |
| Null | null |
| Array | [1, 2, 3] |
| Object | {"key": "value"} |
| Common JSON Errors |
| Trailing comma | {"a":1,} ← invalid |
| Single quotes | {'key':'val'} ← invalid |
| Unquoted keys | {key:"val"} ← invalid |
| Comments | // comment ← not allowed |
| Undefined | undefined ← not a type |
| NaN/Infinity | Not valid JSON values |
🔎Regex Quick Reference
| Pattern | Matches |
. | Any character except newline |
\d | Any digit (0-9) |
\w | Word char (a-z, A-Z, 0-9, _) |
\s | Whitespace (space, tab, newline) |
^ | Start of string |
$ | End of string |
[abc] | Any of: a, b, or c |
[^abc] | Not a, b, or c |
| Quantifier | Meaning |
* | 0 or more times |
+ | 1 or more times |
? | 0 or 1 time (optional) |
{3} | Exactly 3 times |
{2,5} | Between 2 and 5 times |
(abc) | Capture group |
a|b | a or b |
\b | Word boundary |
| Common Regex Patterns | Pattern |
| Email address | ^[\w.-]+@[\w.-]+\.\w{2,}$ |
| URL | https?:\/\/(www\.)?[-a-zA-Z0-9@:%._+~#=]{2,256}\.[a-z]{2,6} |
| Phone (US) | ^\+?1?\s?\(?\d{3}\)?[\s.-]?\d{3}[\s.-]?\d{4}$ |
| Strong password | ^(?=.*[a-z])(?=.*[A-Z])(?=.*\d)(?=.*[@$!%*?&])[A-Za-z\d@$!%*?&]{8,}$ |
📡Morse Code — Letters & Numbers
| Letter | Morse | Letter | Morse |
| A | .- | N | -. |
| B | -... | O | --- |
| C | -.-. | P | .--. |
| D | -.. | Q | --.- |
| E | . | R | .-. |
| F | ..-. | S | ... |
| G | --. | T | - |
| H | .... | U | ..- |
| I | .. | V | ...- |
| J | .--- | W | .-- |
| K | -.- | X | -..- |
| L | .-.. | Y | -.-- |
| M | -- | Z | --.. |
| Number | Morse |
| 0 | ----- |
| 1 | .---- |
| 2 | ..--- |
| 3 | ...-- |
| 4 | ....- |
| 5 | ..... |
| 6 | -.... |
| 7 | --... |
| 8 | ---.. |
| 9 | ----. |
Word separator: 3 spaces. Letter separator: 1 space.
🧰The Encoded Box — All Free Tools
| Tool | URL |
| QR Code Generator | theencodedbox.com/qr-types.html |
| Base64 Encoder/Decoder | theencodedbox.com/base64.html |
| URL Encoder/Decoder | theencodedbox.com/url-encode.html |
| Hash Generator | theencodedbox.com/hash-generator.html |
| JSON Formatter | theencodedbox.com/json-formatter.html |
| Password Generator | theencodedbox.com/password-generator.html |
| Tool | URL |
| Regex Tester | theencodedbox.com/regex-tester.html |
| JWT Decoder | theencodedbox.com/jwt-decoder.html |
| Morse Code Converter | theencodedbox.com/morse-code.html |
| Word Counter | theencodedbox.com/word-counter.html |
| Color Picker | theencodedbox.com/color-picker.html |
| All 40+ Tools | theencodedbox.com/all-tools.html |
All tools are 100% free, browser-based, no signup required. Your data never leaves your device. · theencodedbox.com