How to Send Variable Values Using a CSV/Excel File in Fast2SMS?

Bulk SMS campaigns can be much more effective when every recipient feels the spark of personalization in the message. Instead of sending the same text to everyone, you can include variables like the customer’s name, order ID or any other information directly from an Excel file.

In this article, you will get to know how can we define variables in Excel and their usage in Fast2SMS to create personalized message in just a few minutes.

Step 1: Format your data file properly

Everything starts with a clean spreadsheet. Open Excel and arrange your contact list into clear columns.

  • Use the first row strictly for column headers (e.g., mobile, name, order_id, amount).

  • Ensure all phone numbers are valid 10-digit numbers without spaces, prefixes like +91, or special symbols.

  • Ensure there are no empty cells in columns you plan to use inside your message.

For example: 👇

Step 2: Open the Bulk SMS section

Sign in to your Fast2SMS dashboard. On the Apps dashboard, open the SMS app (the old Bulk SMS section) and click DLT SMS in its sidebar.

Step 3: Choose your Sender ID and Template

Select your registered Sender ID. Next, pick the approved DLT template you want to send. Approved templates use variable placeholders, typically formatted as {#var#} where custom values will be inserted.

Template Text: 👇

“Dear {#name#}, your order {#order_id#} of Rs. {#amount#} has been confirmed.”

Fast2SMS panel: Template 10001 selected, 4 variables filled, 5 numbers typed (1 duplicate, 1 invalid), live preview + "107/1 SMS"

Step 4: Import your Excel Sheet

Under Send To, choose CSV File, then upload your saved .csv file. The Fast2SMS parser will read the file and automatically extract your header names (contact number, name, url) so you can connect them to the template in the next step. The image below shows a file uploaded with its columns already mapped to the template.

DLT SMS page with a CSV file uploaded and CSV columns mapped to the template variables, with message preview

Step 5: Map variables to column headers

Now, match the template placeholders with the respective columns from your uploaded file:

  • {#contact_number#} -> contact number

  • {#name#} -> name

  • {#url#} -> url

Double-check this mapping carefully. If you accidentally map {#contact_number#} to name, your recipients will receive broken or confusing messages.

Step 6: Verify with live previews

Before triggering the campaign, inspect the generated previews. Fast2SMS will show you what the actual message will look like for rows in your file:

  • Preview for Rahul:

    “Dear Rahul, your order ORD1001 of Rs. 1500 has been confirmed.”

  • Preview for Priya:

    “Dear Priya, your order ORD1002 of Rs. 2000 has been confirmed.”

Use this step to check for punctuation, proper spacing around placeholders, and accurate data mapping.

Preview of message preview: 👇

Fast2SMS panel: Real check result popup: Cost per SMS ₹0.2500, Total Numbers 3, Duplicate 1, Invalid 1, Cost [3 x ₹0.2500 x 1] = ₹0.7500 (Confirm & Send not cli

Step 7: Review parameters and send

Take a quick final check of the recipient count, selected Sender ID, and sample previews. Once satisfied, click Send. Fast2SMS will iterate through the dataset, dynamically populate the placeholders for each contact, and deliver each text.

Common issues to avoid

  • Template tampering: Do not modify any static words in the approved DLT template text. Any deviation from the registered phrasing will cause carrier level rejection.

  • Missing values: If a row has a blank space in a mapped column, that recipient’s text may either drop the text variable or fail delivery altogether.

  • Character counts: Dynamic data varies in length. A long customer name or multi digit ID can push your text beyond the standard 160-character limit, splitting it into a multi SMS and consuming extra credits.

Frequently asked questions

What file format should I upload for variable SMS?

Save your sheet as a .csv file and upload it under Send To, CSV File. The file can be up to 20 MB. If you have an .xlsx file, open it in Excel and save it as CSV first. See how to convert Excel to CSV.

Can I type a fixed value for a variable instead of using a column?

Yes. Each template variable can be mapped to a column in your CSV file or filled by typing a value. A typed value goes to everyone in the list.

Should mobile numbers in the file include 91?

Plain 10-digit numbers are the safest choice. Remove spaces, dashes and symbols, and select the column with mobile numbers when the panel asks for it.

How many variables can a DLT template have?

It depends on the DLT portal’s rules for template length and variable size. Use variables only for parts that truly change, like name, amount or date. See DLT template variable limits.

How do I send variable SMS through the API?

Use the DLT SMS API with your Message ID and pass the values in variables_values, separated by a pipe, like value1|value2, in the same order as the variables in the template. See DLT SMS variable values.

Why did my variable SMS fail with a template mismatch?

The final text did not match the approved template, often because a value was too long, had characters the template does not allow, or fixed text was changed. Check the preview before sending. See template not matched fixes.