<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/base84-deserves-a-place-in-file-names-begwnpmcq" -->

---
title: Base84 deserves a place in file names | daily.dev
description: TurboCrypt, a file encryption tool originally built for Unix, is switching its encoded file name alphabet from Base91 to a new Base84 scheme to support Windows...
canonical: https://daily.dev/posts/base84-deserves-a-place-in-file-names-begwnpmcq
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: Base84 deserves a place in file names | daily.dev
og:description: TurboCrypt, a file encryption tool originally built for Unix, is switching its encoded file name alphabet from Base91 to a new Base84 scheme to support Windows...
og:url: https://daily.dev/posts/base84-deserves-a-place-in-file-names-begwnpmcq
og:image: https://api.daily.dev/og/posts/BEgWnPmCQ.png
og:image:alt: Base84 deserves a place in file names
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Base84 deserves a place in file names

**[Lobsters](https://daily.dev/sources/lobsters)** · 4 min read · 2 upvotes · 0 comments

## Summary

TurboCrypt, a file encryption tool originally built for Unix, is switching its encoded file name alphabet from Base91 to a new Base84 scheme to support Windows filesystems. The post explains why 84 characters were chosen (94 printable ASCII minus 9 Windows-forbidden characters minus the trailing dot), how the zig-base84 implementation packs bits into five-character groups for near-Base85 efficiency, how it compares to Base64 and Base91 in expansion rate, and how the five-character grouping incidentally avoids Windows reserved device names like CON and COM1.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://00f.net/2026/09/09/base84>

## Questions this post answers

### Why did TurboCrypt switch from Base91 to Base84 for encrypted file names?

TurboCrypt moved from Base91 to Base84 to support Windows, where several characters in the Unix-safe Base91 alphabet are forbidden. Base84 uses the 85 printable ASCII characters allowed by Windows filenames minus the trailing dot (which doesn't work reliably through the Windows shell), leaving 84 characters safe on Linux, macOS, and Windows filesystems.

_Track encoding and cross-platform filename changes like this one by following TurboCrypt updates on daily.dev._

### How much size overhead does Base84 encoding add compared to Base64?

Base84 adds about 25.2% average expansion versus Base64's 33.3%, using five-character groups since 84^5 is only 2.6% short of 2^32. Worst-case expansion for Base84 is about 29% (for input filled with 0xff bytes), compared to a flat 33.3% for Base64 in all cases.

_Developers comparing encoding schemes for space-constrained filenames can keep up with tools like this via daily.dev._

### How does Base84 encoding avoid producing Windows reserved device names like CON or COM1?

Base84's five-character group packing makes it structurally impossible to spell Windows reserved names. A three-character output always ends in A through J, ruling out CON, PRN, AUX, and NUL; a four-character output always ends in an uppercase letter or a, b, c, never a digit, ruling out COM1-COM9 and LPT1-LPT9, with no padding or special-case handling required.

_Engineers building cross-platform file naming logic can follow encoding edge cases like this on daily.dev._

## Community take

How the wider developer community reacted, aggregated from 2 discussions and 9 comments across hackernews, lobsters (as of 2026-09-13).

**TL;DR:** Reception is skeptical: the accidental avoidance of Windows reserved device names is praised as clever, but many argue the actual space savings over Base64 are negligible and not worth the added complexity, while others raise case-insensitivity and encoding-scheme critiques.

**Sentiment:** 15% positive · 30% mixed · 55% skeptical

**The case for**

- The five-character grouping and its incidental avoidance of Windows special device names is seen as a clever, elegant side effect.
- The fixed five-character chunking allows sensible streaming encode/decode, unlike some other odd-base schemes that require holding the whole value in memory.

**The pushback**

- The actual space savings over unpadded Base64 are tiny (197 bytes vs 191), making the added complexity questionable.
- Base64 is simple enough to reimplement anywhere, so a niche efficiency gain may not justify switching.
- Case-insensitive filesystems on Windows and macOS risk filename collisions that the scheme doesn't address.
- The five-character grouping and specific conversion method are seen as arbitrary and non-generic compared to standardized approaches like Base64 (RFC 4648) or generic arbitrary-base conversion.
- The bit-packing logic for deciding between 31 and 32 bits per group is seen as awkward.

**By community**

- hackernews (skeptical): The one comment present calls the bit-packing logic for five-character groups awkward.
- lobsters (skeptical): Commenters appreciate the incidental avoidance of reserved Windows names but largely question whether the space savings justify the added complexity, and raise case-insensitivity and design-arbitrariness concerns.

**Hottest debate:** Whether the marginal space savings over Base64 justify the added implementation complexity of a non-power-of-two base.

**Open questions**

- How would the scheme handle case-insensitive filesystems where character clashes could occur?
- Would excluding additional characters (like the comma) to support easier use in formats like CSV be worthwhile?

**Highlights**

> The accidental but very convenient avoidance of Windows special device names is very cute. However, the space savings are really tiny: > Base84 guarantees room for 197 bytes of input, compared with 191 for unpadded Base64.
> — [tomsmeding on lobsters · 4 points, 1 comments](https://lobste.rs/s/bfiose/base84_deserves_place_file_names#c_t1kvsx)

> Yeah, I don't really think it's worth the added implementation complexity to move from Base64 to Base84. One of the nice things about Base64 is that it's easy enough to roll your own implementation, so you can use it on any platform. Maybe there's a hyper specific reason why you need a handful of extra bits in a filename, but it must be a pretty niche circumstance where base64 wouldn't work. Still, I appreciate that this implementation uses 5-character clusters so you can do encoding/decoding with a sensible algorithm. I've had the gross misfortune to interact with Base53 before, which cannot be encoded/decoded with chunking, you have to work with the entire value in memory at once.
> — [spillybones on lobsters · 2 points](https://lobste.rs/s/bfiose/base84_deserves_place_file_names#c_fdmim4)

> The problem with these weird bases is the conversion method. "It emits groups of five characters."  That's a non-obvious, arbitrary, and certainly not generic, constraint.   A specific conversion method must also be specified.  For example, RFC 4648 base64 provides a conversion method.  It has to because base64 doesn't fit exactly into the byte paradigm while still being a power of 2. Objective outsiders ("aliens from a distant planet) not using the byte paradigm will not come to the same conclusions as humanity.  Base64 itself is inefficient because it has the constraint of base256: 7 bit ASCII encapsulated in the byte paradigm, base256. However, base64 is more obvious and less arbitrary than "Base84" since it is a power of 2. Base64 in itself is 100% efficient, as is any power of 2, assuming Shannon's informational foundation.  Any non-power of 2 has waste, extra potential "unused codes".  This is one of the foundational principals of Information Theory itself. There is an alternative: arbitrary base conversion using the "iterative divide by radix" algorithm (see https://convert.zamicol.com to play with it).  Arbitrary base conversion is generic. It only requires one variable: your chose output alphabet (given a known input).
> — [Zamicol on lobsters · 1 points](https://lobste.rs/s/bfiose/base84_deserves_place_file_names#c_jsyp6d)

> > Every character is acceptable in a filename on the usual Linux, macOS and Windows filesystems. Except, Windows and macOS have case insensitive file systems so you risk clashes.
> — [mitsuhiko on lobsters · 1 points, 1 comments](https://lobste.rs/s/bfiose/base84_deserves_place_file_names#c_uih9b3)

> > It emits groups of five characters. Five is the sweet spot: 84⁵ = 4,182,119,424, only 2.6% short of 2³². > That leaves enough room for a group to hold 32 bits about 95% of the time on uniformly random input, and 31 bits otherwise. > The encoder looks at the next 31 bits. If their value is below 84⁵ - 2³¹, there’s room for a 32nd bit. Otherwise, it consumes just those 31 bits. Either way, the value fits in five base-84 digits. Seems pretty awkward.
> — [zahlman on hackernews](https://news.ycombinator.com/item?id=49655712)

**Source threads**

- [hackernews](https://news.ycombinator.com/item?id=49655450) · 4 points · 2 comments
- [lobsters](https://lobste.rs/s/bfiose/base84_deserves_place_file_names) · 22 points · 7 comments

## Similar posts on daily.dev

- [Punycode: My New Favorite Algorithm](https://daily.dev/posts/punycode-my-new-favorite-algorithm-oizfhofuk) · Lobsters · 0 upvotes · 0 comments
- [It Turns Out Browsers Natively Support Base64 Encoding and Decoding in JavaScript](https://daily.dev/posts/it-turns-out-browsers-natively-support-base64-encoding-and-decoding-in-javascript-mokunury9) · Medium · 1 upvotes · 0 comments
- [Nic Barker Explains ASCII, Unicode, And UTF-8](https://daily.dev/posts/nic-barker-explains-ascii-unicode-and-utf-8-qpgici9wo) · Hackaday · 0 upvotes · 0 comments
- [An ode to bzip](https://daily.dev/posts/an-ode-to-bzip-77mxidlhb) · Lobsters · 1 upvotes · 0 comments

---

Tags: [#cryptography](https://daily.dev/tags/cryptography), [#zig](https://daily.dev/tags/zig)

[View this post on daily.dev](https://daily.dev/posts/base84-deserves-a-place-in-file-names-begwnpmcq)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"Base84 deserves a place in file names","url":"https://daily.dev/posts/base84-deserves-a-place-in-file-names-begwnpmcq","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/base84-deserves-a-place-in-file-names-begwnpmcq"},"datePublished":"2026-09-12T21:24:48.007Z","dateModified":"2026-09-13T06:25:27.813Z","description":"TurboCrypt, a file encryption tool originally built for Unix, is switching its encoded file name alphabet from Base91 to a new Base84 scheme to support Windows...","image":"https://media.daily.dev/image/upload/s--P4t4XyoV--/f_auto/v1722860399/public/Placeholder%2001","thumbnailUrl":"https://media.daily.dev/image/upload/s--P4t4XyoV--/f_auto/v1722860399/public/Placeholder%2001","isAccessibleForFree":true,"articleSection":"Lobsters","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Organization","name":"Lobsters","logo":"https://media.daily.dev/image/upload/s--tl8v_Fku--/f_auto,t_logo/v1698841318/logos/lobste.jpg","url":"https://daily.dev/sources/lobsters"},"commentCount":0,"discussionUrl":"https://daily.dev/posts/base84-deserves-a-place-in-file-names-begwnpmcq","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":2},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":0}],"keywords":"cryptography,zig","timeRequired":"PT4M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Lobsters","item":"https://daily.dev/sources/lobsters"},{"@type":"ListItem","position":3,"name":"Base84 deserves a place in file names"}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/base84-deserves-a-place-in-file-names-begwnpmcq#faq","mainEntity":[{"@type":"Question","name":"Why did TurboCrypt switch from Base91 to Base84 for encrypted file names?","acceptedAnswer":{"@type":"Answer","text":"TurboCrypt moved from Base91 to Base84 to support Windows, where several characters in the Unix-safe Base91 alphabet are forbidden. Base84 uses the 85 printable ASCII characters allowed by Windows filenames minus the trailing dot (which doesn't work reliably through the Windows shell), leaving 84 characters safe on Linux, macOS, and Windows filesystems. Track encoding and cross-platform filename changes like this one by following TurboCrypt updates on daily.dev."}},{"@type":"Question","name":"How much size overhead does Base84 encoding add compared to Base64?","acceptedAnswer":{"@type":"Answer","text":"Base84 adds about 25.2% average expansion versus Base64's 33.3%, using five-character groups since 84^5 is only 2.6% short of 2^32. Worst-case expansion for Base84 is about 29% (for input filled with 0xff bytes), compared to a flat 33.3% for Base64 in all cases. Developers comparing encoding schemes for space-constrained filenames can keep up with tools like this via daily.dev."}},{"@type":"Question","name":"How does Base84 encoding avoid producing Windows reserved device names like CON or COM1?","acceptedAnswer":{"@type":"Answer","text":"Base84's five-character group packing makes it structurally impossible to spell Windows reserved names. A three-character output always ends in A through J, ruling out CON, PRN, AUX, and NUL; a four-character output always ends in an uppercase letter or a, b, c, never a digit, ruling out COM1-COM9 and LPT1-LPT9, with no padding or special-case handling required. Engineers building cross-platform file naming logic can follow encoding edge cases like this on daily.dev."}}]}
```

