File to Base62.
Drop a file and get its Base62: all the letters and digits and nothing else. The bytes are read as one number and converted in your browser.
File to Base62.
Need the UI around it? With Pro, your AI agent builds the form, the result card and the rest of the page from a prompt.
Get ProHow it works
3 steps, no account. It runs in your browser and nothing is uploaded.
Drop a file
Drop any file onto the input or choose one with the button; it is read on your machine.
Read the result
The bytes are encoded as Base62 and the result shows how much larger the text is.
Copy or download
Copy the Base62 into your code or config, or download it as a text file.
Related tools
More encoders and decoders. Every one free, in the browser.
Pricing
Build it with Pro
The tool is free. Pro adds 6,000+ blocks, premium templates and the MCP server, so your AI editor builds the product around it.
4.9/5 out of 5 · 150+ reviewsfrom 150+ founders and developers.
- Secure checkout via Stripe
- Code lives in your repo
- Keep what you've shipped if you cancel
- License terms
Questions and answers
Before you trust the result: what to know about the format, the limits, your data and the tools next to it.
Base62 writes a number with all 62 letters and digits, 0 to 9, A to Z then a to z, and no symbols. It is the densest alphabet that needs no escaping anywhere: not in a URL, a file name, a JSON string or a shell. The tool treats the input bytes as one big number and writes that.
The bytes are read as one integer, big end first, and written in base 62 by repeated division. Each character carries about 5.95 bits, so the output is about 34% larger than the input, close to Base64. Leading zero bytes are kept as leading 0 characters. There is no padding.
URL shorteners (bit.ly's slugs), short unique ids, invite and referral codes, session and API tokens, and anywhere a 64-bit id has to become an 11-character string that fits a URL untouched.
Yes: letters and digits only, nothing to escape.
Nearly as short as Base64 with none of its symbols, which is why web ids use it; but case-sensitive, so a person transcribing it can slip, and converted as one number, so it is slow on anything big. Base58 drops the look-alike characters for the same job; Base36 drops case; Base64 streams.
No. Base62 is an encoding, not encryption: it changes how bytes are written, not who can read them, and anyone can decode it with no key. Encrypt first (AES, age, a library's sealed box) when the content needs protecting, then encode the ciphertext if it has to travel as text.
Drop the file onto the input or choose it with the button. Its bytes are encoded in your browser and the Base62 appears in the result pane, with the size it grew to. Copy it, or download it as a text file.
Base62 treats the whole input as one number, so the tool takes up to 512 KB at once; past that the conversion would stall the page.
Whatever needs the bytes as text: a short id, a slug or a token that must travel unescaped. Base62 is safe in a URL as it is, and it is about 34% larger than the file, so it is for carrying bytes through text, not for storing them.
Nothing leaves your browser. The file is read into memory on your machine and the encoding is computed there, in plain JavaScript; the page makes no request with it. Load the page, go offline and it keeps working.
No. The "File to Base62" tool is free and opens without a sign-in, an account or an install.
Nothing. The "File to Base62" tool holds your input in the page's memory, so closing or reloading the tab clears it, and it saves nothing in this browser.
Any file the browser can open. The bytes are read in your browser and encoded as Base62; the result can be copied or downloaded as base62-encoded.txt. Base62 treats the input as one number, so the tool takes up to 512 KB at once.
Base62 output is about 1.34 characters per byte, and the status line under the result shows the bytes in, the characters out and the percentage. Base62 treats the input as one number, so the tool takes up to 512 KB at once.
Use the Base62 to file page: it decodes Base62 back to the original bytes, and names the download after the file type it recognises.
No: Base62 has a single alphabet, so the encoding is the same every time.
Closest to the "File to Base62" tool: Base62 to file, Base62 encoder, Base62 decoder, File to Base58. Each opens on its own page, free and in the browser.
The "File to Base62" tool is one of 32 in its group. The group's page, /tools/encoding, lists them all.
The tool is free. Its interface is built from shadcn.io's own components (Button, Input, Slider and the rest of the registry under /ui), which come in React, Vue, Svelte and Solid. Pro adds the blocks and templates for the product around it.
4.9 out of 5 from 150+ developers
Build the product around it
Every block, template and icon, installed by your AI agent in your theme. The tools stay free.
Get Pro




