Formatting data consistently creates a clean, organized, and accessible experience.
Country names
For country names, follow https://countrycode.org/.
Do ✅ | Don't ❌ |
---|---|
|
|
Addresses
The standard US address has three lines: recipient; line one (street number and name), line two (unit or suite number), which is often optional; and line three (city, state, and postal code). Use the standard five-digit postal code. Don’t add the extra four digits unless automatically generated by an address confirmation system.
VTEX
11 E 44th St 11 Floor
New York, NY 10017
Write a comma between the city and state only. If an address has to be written in one line of text, put a comma after the street name and after the city.
11 E 44th St 11 Floor, New York, NY 10017
Follow the guidelines of the United States Postal Service for any special cases. For other countries, follow the guidelines of the main postal service of that country.
Do ✅ | Don't ❌ |
---|---|
|
|
When indicating an approximate location, you can use either the postal code in five-digit format, the city, or both. If both the city and the postal code are used, use a comma to separate them.
Do ✅ | Don't ❌ |
---|---|
|
|
Locales
Use a two-letter lowercase language subtag and a two-letter uppercase country subtag separated by a hyphen to identify locales. This is based on the IETF BCP 47 standard, itself a combination of ISO standards.
Do ✅ | Don't ❌ |
---|---|
|
|
Numbers
Use comma as the thousand separator and period as the decimal separator.
Do ✅ | Don't ❌ |
---|---|
|
|
When talking about empty values, such as null, 0, or empty.
Do ✅ | Don't ❌ |
---|---|
|
|
When referring to installments, use only the number. Don’t use x as an abbreviation of the word installment.
Do ✅ | Don't ❌ |
---|---|
Pay in 3 | Pay in 3x |
Big numbers should use comma (,) as the thousand separator.
Do ✅ | Don't ❌ |
---|---|
37,809,009 | 37809009 |
Use large number abbreviations when space is a constraint.
Examples |
---|
|
Use the following format of US phone numbers in local contexts (xxx) xxx-xxx and +1 (xxx) xxx-xxxx for international context.
Do ✅ | Don't ❌ |
---|---|
|
|
For percentages, write the number and the symbol together, and either use no decimal places or use two.
Do ✅ | Don't ❌ |
---|---|
|
|
Currency
Use the country code when prioritizing clarity, and use the currency symbol in contexts that require more usability, such as a storefront.
Do ✅ | Don't ❌ |
---|---|
|
|
Do not add space between the symbol and value.
Do ✅ | Don't ❌ |
---|---|
$50 USD | $ 50 USD |
Use a period as a decimal separator in currency values. Don't use separators for decimals, not even for long decimal numbers.
Do ✅ | Don't ❌ |
---|---|
$0.006653 | $0,006653 |
Date and time
The US date format is Month Day, Year of Day of the week, Month Day, Year. Use cardinal numbers for the day (1, 2, 30) and commas between the day of the week and the month and between the day and the year.
Do ✅ | Don't ❌ |
---|---|
|
|
Use MM/DD/YYYY in forms and ranges.
Do ✅ | Don't ❌ |
---|---|
The feature was deprecated on May 13, 2020. | The feature was deprecated on May 13 2020. |
Use 12-hour clock abbreviations in uppercase with no period.
Do ✅ | Don't ❌ |
---|---|
The promotions starts at 10:00 PM | The promotion starts at 10 p.m. |
When an event or action actually happens based on a specific local time, include the city and UTC zone.
Do ✅ | Don't ❌ |
---|---|
10:30 AM São Paulo (GMT-3) | 10:30 a.m São Paulo (GMT-3) |
For time remaining, use 00d 00h 00m 00s. Include as many units of time as needed.
Do ✅ | Don't ❌ |
---|---|
2h 30m | 150 minutes |
For elapsed time, use x time word
ago, such as created date and last modified.
Do ✅ | Don't ❌ |
---|---|
2 days ago | 2d |
Units of measurement
Add a space between the number and the unit.
Do ✅ | Don't ❌ |
---|---|
|
|
Put the plus or minus sign before the amount and the currency symbol with no space.
Do ✅ | Don't ❌ |
---|---|
|
|
Never use plural in unit of measurement abbreviations.
Do ✅ | Don't ❌ |
---|---|
|
|
For pricing by measurement, never add a space before or after a slash.
Do ✅ | Don't ❌ |
---|---|
$50/m |
|
Always use numerals and units when writing quantities.
Do ✅ | Don't ❌ |
---|---|
|
|
Always use miles as the measure for distance.
Do ✅ | Don't ❌ |
---|---|
|
|
Ranges
Always use en dash between ranges.
Do ✅ | Don't ❌ |
---|---|
|
|
Documentation
When writing time, include the city and GMT zone.
Do ✅ | Don't ❌ |
---|---|
Maintenance is scheduled for Monday, April 14, 2025 at 10:30 a.m. São Paulo (GMT-3). | Maintenance is scheduled for Monday, April 14, 2025 at 10:30 a.m. São Paulo time. |
If a number is under 10, spell it out (one, two, three, etc.). If it’s over (and including) 10, write it using digits (example: 43, 775), except when the number doesn’t refer to a specific value.
Do ✅ | Don't ❌ |
---|---|
|
|