Color contrast is one of the most common accessibility failures. The fix is simple once you know the thresholds.
The Thresholds
| Use Case | Level AA | Level AAA |
|---|---|---|
| Normal body text | 4.5:1 | 7:1 |
| Large text 18px+ or 14px+ bold | ...
Base64 encoding converts binary data to ASCII text using 64 safe characters. It's everywhere — JWTs, email attachments, CSS data URIs, HTTP auth headers — but it's also frequently misused.
What Base64 Does
Every 3 bytes of input become 4 characters...
Lorem ipsum is the default placeholder text in design and development, but it's worth knowing how to use it efficiently. Here's a practical reference covering lengths, output formats, and shortcuts for every major design tool.
Lorem Ipsum Length Ref...
One of the most searched questions in writing and content creation: how many words is X characters?
The short answer: the average English word is 5 characters plus a space — roughly 6 characters per word. Divide your character count by 6 for a quick...
HTML minification is the process of removing unnecessary characters from HTML source code without changing how the browser renders the page. It's a cheap, no-risk performance win for most web projects.
What Minification Removes
Whitespace — Spaces,...
JSON is the default API response format. CSV is what spreadsheets, databases, and data pipelines want. Converting between them is routine — but nested JSON makes it less simple than it first appears.
The Simple Case: Flat Arrays
If your JSON is a f...
Cryptographic hashes appear in password storage, file verification, API authentication, digital signatures, and blockchains. Here's how they work and which one to use for each purpose.
What is a cryptographic hash?
A hash function takes input of an...
CSS minification is one of those optimisations that's easy to apply and genuinely makes a difference for page load speed. But it's worth knowing exactly what a minifier does — and doesn't — change about your stylesheet.
What a minifier removes
Comm...
CSS gradients confuse a lot of developers because the angle system doesn't work the way you'd expect from school trigonometry. Once you understand the pattern, every gradient you see becomes readable — and every gradient you build becomes intentional...
Unix timestamps appear constantly in API responses, log files, database records, and JavaScript code. Here's how they work, why they exist, and how to convert them in every common language.
What is a Unix timestamp?
A Unix timestamp also called epo...
Duplicate lines show up everywhere — exported CSV files, log outputs, lists copied from spreadsheets, word lists scraped from websites. Here's how to remove them efficiently in every context.
The Browser Approach Fastest for One-Off Tasks
If you ju...
JSON is everywhere — REST APIs, config files, database exports, WebSocket payloads. When something goes wrong with JSON, you need to format it, validate it, and find the error fast. Here's a complete guide to the tools and techniques.
Why JSON forma...
URL encoding percent-encoding is one of those foundational web concepts that causes real bugs when misunderstood. Here's how it works, when you need it, and the correct functions to use in different languages.
What is URL encoding?
A URL may only c...
Naming conventions matter more than most developers think. They affect readability, cross-language compatibility, and how quickly new contributors can understand your codebase. Here's a complete guide to every major case format and when to use each.
...
Color is everywhere in web design — but which color format should you actually use? HEX, RGB, HSL, and CMYK all represent colors, but they serve very different purposes. Here's a practical breakdown.
HEX #RRGGBB
HEX is the most compact and universa...
CSS gradients are one of those features where the syntax and the possibilities are both richer than most developers realise. This is a complete reference — not just the basics.
Linear gradients
The most common gradient type:
css
/ Basic two-color ...
CSS minification is one of the cheapest performance improvements in web development. For most projects, it requires zero configuration changes and saves 20–40% of CSS file size before compression kicks in.
What Minification Does
A CSS minifier remo...
UUID Universally Unique Identifier generation seems trivial, but the choice of UUID version, storage format, and primary key strategy significantly affects database performance at scale. Here's what you need to know.
What is a UUID?
A UUID is a 128...
Unformatted SQL is a maintenance problem. A 200-character single-line query is hard to review in a PR, harder to debug under pressure, and inconsiderate to hand off to a teammate. SQL formatting costs nothing and pays back immediately.
What a SQL Fo...
Color contrast accessibility is one of the most commonly failed WCAG criteria — and one of the easiest to fix once you understand the rules. Here's what the standard requires and how to verify compliance.
What WCAG says
The Web Content Accessibilit...