Unique code generator

Create a list of codes in the format your campaign needs.

Count up from a starting number, with zeros added to fit.

Format preview

Your list starts here.

Set your format, then generate codes to copy or download.

Your codes

    Excel keeps leading zeros. For CSV, import the Code column as text in your spreadsheet.

    Tell us what happened and what you expected. Please leave out personal information and private tool inputs.

    These details describe your setup. They don’t include your name, email, or anything entered into the tool.

    See the details included

    Voting-limit status from this browser is included. Reports are stored by Netlify so I can investigate.

    Start with the import requirements

    Check the allowed characters, total length, file format, and heading with your vendor before making the list. Use a campaign prefix such as FALL_ to distinguish one campaign from another.

    Sequential numbers work when you want a traceable list. A prefix of COUPON_, six digits, and a start of 1 produces COUPON_000001. The zeros fill the six-digit number; the complete code has 13 characters.

    Random codes suit lists that should not simply count upward. The default character set leaves out I, O, 0, and 1 to reduce confusion when someone reads or types a code. You can also choose letters only or digits only.

    Review, export, and import

    Generate up to 50,000 codes. The preview shows the first 100; copying or downloading includes the full batch. The Excel file contains one text column, so 000123 stays 000123. Choose CSV when your vendor requires it, and check whether they want the Code heading.

    Try a small import before sending the full list. This tool creates codes locally in your browser and does not send them to your vendor or save a campaign history. Editing the format clears the previous result so you cannot accidentally download a list made with older settings.

    How uniqueness works

    Random codes use the browser’s cryptographic random-number API. Repeated candidates are discarded within the current batch. Requests larger than the available combinations are rejected; for example, two digits allow only 100 distinct codes.

    Sequential codes advance by one and are padded to your chosen length. The tool rejects a batch that would overflow that length. Use Next batch to continue after the last generated number. For standard technical identifiers with a fixed format, use the UUID generator.

    FAQs

    How do I make COUPON_000001 and count upward?

    Choose Sequential numbers, enter COUPON_ as the prefix, choose six digits after the prefix, and start at 1. A batch of 100 ends at COUPON_000100. Next batch begins at COUPON_000101.

    Does the length include my prefix?

    No. The length controls the part after your prefix. The format preview shows the complete code and total character count.

    Which download should I send to my vendor?

    Use the format they request. Excel preserves codes as text, including leading zeros. CSV is a plain one-column list for imports; spreadsheet programs may remove zeros unless you import that column as text. You can omit the Code heading if the vendor does not want it.

    Can codes repeat in a later batch?

    Yes, especially when you generate another random batch or reuse a sequential starting number. This page does not retain previous lists. Next batch advances a sequence, while a new campaign prefix helps separate campaigns.

    Does this activate coupons or manage redemptions?

    No. These are code lists. Your vendor, POS, or CMS must set discounts, expiration dates, eligibility, and redemption limits. Sequential codes are predictable, and random codes alone do not prevent misuse.

    Have an idea for a tool I should add? Send it in. I read every suggestion and choose which ones to build next.

    For example: "Count the weekdays until a date, without holidays."

    Please don't include your name, email, or anything personal. I don't need it. Voting-limit status from this browser is included.