# Stackbench guides

Canonical page: https://bench.in-stacks.com/en/guides/

Short practical articles on the problems the tools solve. Each is paired with a tool.

## Base64 and UTF-8: why btoa fails on Chinese and what mojibake means

Page: https://bench.in-stacks.com/en/guides/base64-utf8-pitfalls/

btoa throws on Chinese and emoji, atob returns garbage for UTF-8, and URL-safe or unpadded input breaks decoders. The byte-level reasons and the correct code.

Tool: [Base64 Encoder & Decoder](https://bench.in-stacks.com/en/tools/developer/base64-converter/)

## Resize, compress, convert: three different jobs

Page: https://bench.in-stacks.com/en/guides/image-resize-compress-convert/

Resizing, compressing and converting are three operations with three failure modes. The order to do them in, the quality settings that hold up, and the traps.

Tool: [Image Resizer](https://bench.in-stacks.com/en/tools/utility/image-resizer/)

## Why your regex works in the tester but fails in your code

Page: https://bench.in-stacks.com/en/guides/javascript-regex-dialects/

JavaScript, Python and PCRE are different regex dialects. The anchor, digit, group, flag and replacement rules that break when a pattern moves between them.

Tool: [Regex Tester & Regular Expression Validator](https://bench.in-stacks.com/en/tools/developer/regex-tester/)

## JWT decode vs verify: what a readable token does not prove

Page: https://bench.in-stacks.com/en/guides/jwt-decode-vs-verify/

Anyone can read a JWT payload without a key. What a decoder shows, what verification adds, the alg pitfalls, and why exp and Chinese claims go wrong.

Tool: [JWT Decoder](https://bench.in-stacks.com/en/tools/developer/jwt-decoder/)

## Keyword density: what the number can and cannot tell you

Page: https://bench.in-stacks.com/en/guides/keyword-density-what-it-can-tell-you/

Google has said there is no ideal keyword density. How density is calculated, and how to use it to spot accidental repetition instead of chasing a target.

Tool: [Keyword Density Checker & Word Frequency Analysis](https://bench.in-stacks.com/en/tools/seo/keyword-density/)

## Markdown to HTML: raw HTML, safety, GFM differences and heading ids

Page: https://bench.in-stacks.com/en/guides/markdown-to-html-raw-html-safety/

What happens to raw HTML and javascript: links when Markdown becomes HTML, why List<String> disappears, and why heading ids and line breaks differ by renderer.

Tool: [Markdown to HTML Converter](https://bench.in-stacks.com/en/tools/developer/markdown-to-html/)

## Markdown to PDF in the browser: image PDF vs text PDF, page size, margins and page breaks

Page: https://bench.in-stacks.com/en/guides/markdown-to-pdf-image-print/

Turn Markdown into a PDF or PNG you can share: image PDF or selectable-text PDF, A4 and Letter, margins, page breaks, long documents and Chinese fonts.

Tool: [Markdown Viewer & Exporter](https://bench.in-stacks.com/en/tools/developer/markdown-exporter/)

## MD5, SHA-1 and SHA-256 checksums: why yours does not match

Page: https://bench.in-stacks.com/en/guides/md5-sha-checksums-explained/

Newlines, encodings and line endings change a hash completely. Digest sizes, what is broken in MD5 and SHA-1, why none suit password storage, and hashing files.

Tool: [Hash Generator & Checksum Calculator](https://bench.in-stacks.com/en/tools/developer/hash-generator/)

## Merge PDFs without uploading them: what runs in the browser and what gets lost

Page: https://bench.in-stacks.com/en/guides/merge-pdf-without-uploading/

Combine PDFs on your machine, check that nothing is sent, and know the real limits: encrypted files, lost bookmarks, metadata and signatures.

Tool: [PDF Merger & Page Extractor](https://bench.in-stacks.com/en/tools/utility/pdf-merger/)

## Password entropy: how long is long enough, and what symbols really add

Page: https://bench.in-stacks.com/en/guides/password-entropy-length-vs-symbols/

Entropy is length times log2 of the pool. Why an extra character often beats extra symbols, why Math.random is unfit, and what entropy cannot tell you.

Tool: [Strong Password Generator](https://bench.in-stacks.com/en/tools/utility/password-generator/)

## Photo metadata: which EXIF fields actually give you away

Page: https://bench.in-stacks.com/en/guides/photo-metadata-privacy/

A photo can carry GPS coordinates, the capture time, the camera model and a hidden thumbnail. How to strip those fields without re-encoding the image.

Tool: [Photo Metadata Viewer & EXIF Checker](https://bench.in-stacks.com/en/tools/utility/exif-viewer/)

## QR code error correction and contrast: choosing L, M, Q or H and colours that scan

Page: https://bench.in-stacks.com/en/guides/qr-code-error-correction-contrast/

A QR code that scans on screen can fail on paper: error-correction levels, why contrast and polarity matter, and how to size the quiet zone.

Tool: [QR Code Generator](https://bench.in-stacks.com/en/tools/utility/qrcode-generator/)

## Why a text diff flags lines that look identical: line endings, whitespace and invisible characters

Page: https://bench.in-stacks.com/en/guides/text-diff-line-endings-whitespace/

CRLF vs LF, trailing spaces, tabs, a missing final newline, BOMs and non-breaking spaces: the invisible differences behind a noisy diff, and how to find each.

Tool: [Text Diff & Line Compare](https://bench.in-stacks.com/en/tools/developer/text-diff/)

## Unix timestamp mistakes: units, timezones, and the 1970 bug

Page: https://bench.in-stacks.com/en/guides/unix-timestamp-mistakes/

Seconds or milliseconds, UTC or local, offset or zone name: the recurring ways Unix timestamps break, each with the symptom that identifies it and the fix.

Tool: [Unix Timestamp Converter](https://bench.in-stacks.com/en/tools/developer/timestamp-converter/)

## encodeURIComponent vs encodeURI, and where %2520 and "URI malformed" come from

Page: https://bench.in-stacks.com/en/guides/url-encoding-component-vs-uri/

Which JavaScript encoding fits a query value, a whole address or a form body, plus the causes of double encoding, "URI malformed" and garbled Chinese.

Tool: [URL Encoder & Decoder](https://bench.in-stacks.com/en/tools/developer/url-encoder/)

## UTM parameters: naming conventions that keep reports clean

Page: https://bench.in-stacks.com/en/guides/utm-parameters-naming-conventions/

Why the same campaign shows up in three report rows, how internal UTMs overwrite real sources, and the naming rules and URL mistakes that cause both.

Tool: [UTM Link Builder & Campaign URL Generator](https://bench.in-stacks.com/en/tools/seo/utm-builder/)

## UUID v4 vs v7: which one to use, and what v7 gives away

Page: https://bench.in-stacks.com/en/guides/uuid-v4-v7-which-to-use/

Random v4 keys scatter inserts across a database index; time-ordered v7 keys fix that at a price. The bit layout, caveats and a rule for choosing.

Tool: [UUID Generator](https://bench.in-stacks.com/en/tools/developer/uuid-generator/)

## Word count vs character count: which one to trust, and when

Page: https://bench.in-stacks.com/en/guides/word-count-vs-character-count/

Why two tools give different counts for the same text: how spaces, emoji, Chinese and encodings change the number, and which limit uses which unit.

Tool: [Word & Character Counter](https://bench.in-stacks.com/en/tools/utility/word-counter/)

## Title tag length: measure pixels, not characters

Page: https://bench.in-stacks.com/en/guides/title-tag-length/

Search results truncate titles by rendered width, so no character count is safe. The number that actually matters, and how to check it before you publish.

Tool: [Meta Tag Generator & SERP Preview](https://bench.in-stacks.com/en/tools/seo/meta-generator/)

## Why your JSON is invalid: 7 rules that trip people up

Page: https://bench.in-stacks.com/en/guides/invalid-json/

JSON looks like JavaScript but is stricter. These are the seven syntax rules that cause almost every parsing error, and how to find the exact line that broke.

Tool: [JSON Formatter & Validator](https://bench.in-stacks.com/en/tools/developer/json-formatter/)

