ASCII Identifier Generator

Paste a title or a heading and get a name a program can use: lowercase letters, digits and underscores.

FluffyShield Protected workspace
FluffyShield

Isolated workspace: other page scripts can't read your files. How FluffyShield works

Free · No upload · No sign-up · No usage quotas

Why does the name start with an underscore?

Because your heading starts with a digit, and programs won't take a name that does. The underscore in front turns it back into a name.

How a heading becomes a name
  1. Take the accents off letters
  2. Turn each run of anything but a to z and 0 to 9 into one underscore
  3. Put an underscore in front of a leading digit

What it does

Accents come off

Crème brûlée becomes creme_brulee.

Some letters are spelled out

ß is written as ss: Straße becomes strasse.

Reserved words get through

Class comes out as class, a word Python and JavaScript keep for themselves. Check the name against your language's list.

Limits Lowercase with underscores only; the tool doesn't write names like salesTotal.

From a spreadsheet heading to a name in code

You're moving a spreadsheet into a database, or a friend is writing a little script that reads it, and every column needs a name the program can work with: no spaces, no brackets, no currency signs. You paste the headings in one by one.

Customer name comes back as customer_name, which is what you'd expect. The other two come back with something extra at the front.

HeadingIdentifier2025 sales (€)_2025_salesCustomer namecustomer_name1st choice_1st_choice

Three headings, three names

Customer name gets nothing in front, because it already starts with a letter. How we checked

Why a name can't start with a digit

A program reads your code a character at a time, and the first character of a word tells it what kind of word is coming, much as a $ or £ in front of a figure tells you it's a price before you've read the amount. A digit means a number.

Python and JavaScript, for instance, read 1_000 as a thousand, so to them a word that begins 2025_ looks just like the start of a number. Python, JavaScript and most other languages follow one rule: a name begins with a letter or an underscore, and digits can come after that.

So the tool puts an underscore in front, which every one of those languages accepts as a first character. _2025_sales is a name. If you'd rather the year came last, write the heading as "Sales 2025" and you get sales_2025 with no underscore at all.

Naming your columns one at a time

The tool turns all you paste into a single name, so give it one heading at a time.

  1. Paste one heading into the Input box.

  2. Read the name in the ASCII identifier box (on a phone, tap Result to reach it).

    The ASCII identifier box holding _2025_sales, with Copy and Download above it.
    The ASCII identifier box holding _2025_sales, with Copy and Download above it.
  3. Paste the next heading over the first one.

When underscores aren't what you need

The name goes at the end of a web address

URL Slug Generator

It joins the words with hyphens and folds accented letters to plain a–z.

You only want the heading in lowercase, spaces and all

Text cleaner

Its Lowercase choice lowers every letter and leaves the spaces and symbols where they are.

Search FluffyBench