NewAPIVerve Academy: free courses and certifications anyone can verify.Explore the Academy →

Remove Punctuation API

POST

Strip all punctuation from text before analysis or search indexing.

Remove Punctuation strips punctuation marks from any submitted text string and returns the cleaned text. Paid plans add the total count and a list of every punctuation character removed.

Try it — live request, no key required

Request
POSTapi.apiverve.com/v1/removepunctuation
Body
Verification
Format

No key required to try it. Get a key to use it in your app.

Example
{
  "status": "ok",
  "error": null,
  "data": {
    "cleaned": "Hello world How are you doing today Im great thanks for asking This text has lots of punctuation periods commas hyphens more",
    "punctuation_removed": [
      "!",
      "&",
      "'",
      ",",
      "-",
      ".",
      ":",
      "?"
    ],
    "count": 11
  }
}

About the Remove Punctuation API

A remove punctuation API for cleaning text before you analyze, index or compare it. Remove Punctuation strips all standard punctuation characters from text, including quotes, brackets, dashes, and special symbols, and returns clean text with single spaces between words, ready for word counts, tokenizers, search indexes or slug generation.

It handles more than the keyboard set: curly quotes, em and en dashes, ellipses, guillemets and inverted Spanish question and exclamation marks are removed too, which is where simple find-and-replace scripts usually miss. Emoji and currency symbols such as the euro sign are left alone, so the text keeps its meaning. Data teams use it to normalize survey answers and product titles, developers use it before matching user input against stored values, and NLP pipelines use it as a text cleaning step before tokenizing.

The Free plan returns the cleaned text. Paid plans also return the list of distinct punctuation characters that were removed and the total number of characters stripped, which is useful for auditing what a cleaning step changed.

How it works

Remove Punctuation matches two sets of characters in a single Unicode-aware regular expression. The first is the full printable ASCII punctuation and symbol set: ! " # $ % & ' ( ) * + , - . / : ; < = > ? @ [ \ ] ^ _ ` { | } ~. That set includes ASCII symbols such as $, +, <, =, >, |, ~ and the underscore, so they are removed as well. The second is every character in Unicode's punctuation category (\p{P}), which covers curly quotes, em and en dashes, ellipses, guillemets, inverted marks and punctuation from other scripts.

Unicode symbols outside ASCII, such as emoji, the euro and pound signs and mathematical symbols, are not in the punctuation category and are kept. Letters, digits and whitespace are never touched. Apostrophes inside words are removed rather than replaced with a space, so "I'm" becomes "Im" and "don't" becomes "dont". Hyphens are removed the same way, so "well-known" becomes "wellknown".

After removal, every run of whitespace, including tabs and line breaks, is collapsed to a single space and the result is trimmed, giving cleaned. Text made only of punctuation returns an empty cleaned string. count is the total number of characters removed, counting repeats, and punctuation_removed is the list of distinct characters that were removed, sorted by code point. Both are null on the Free plan, where only cleaned is returned.

What people use it for

Text Analysis
Clean text data before performing word frequency analysis, sentiment analysis, or natural language processing
Search Optimization
Remove punctuation from search queries to improve matching and relevance in search systems
Data Normalization
Standardize text data by removing punctuation before comparison or deduplication
Content Processing
Clean user input or scraped content by removing punctuation for storage or display

Ways to call it

One endpoint, many ways in — REST with JSON, XML, YAML and CSV, plus GraphQL and an MCP interface for AI agents.

JSON
Default REST response
XML
Markup format
YAML
Human-readable
CSV
Tabular export
Beta
GraphQL
Query language
New
MCP
For AI agents

Other ways to use Remove Punctuation

Same data, same APIVerve account, same credit balance — one key works on all of them.

Questions.

Common questions about the Remove Punctuation API.

Read the docs →
Which plan fits 50,000 text cleaning requests a month?
The Starter plan covers 200,000 calls per month, which easily handles 50,000 requests using a quarter of your monthly credits. Each call costs 1 credit, which works out to about $0.15 per 1,000 calls on Starter. If you are just testing, the Free plan provides 200 calls each month.
Can I see which punctuation marks were removed on the Free plan?
No, the list of removed punctuation characters and the total count are premium fields reserved for paid plans. The Free plan returns only the cleaned text string. Upgrading to Starter or higher provides both the cleaned text and the detailed removal metrics.
What types of punctuation does the tool remove?
It removes all standard punctuation characters, including quotation marks, brackets, dashes, and special symbols. Standard terminal punctuation like periods, commas, question marks, and exclamation points are also stripped out.
Does removing punctuation alter alphanumeric characters or spacing?
No, alphanumeric characters and standard spacing remain intact. Remove Punctuation isolates and strips only punctuation symbols, leaving words, numbers, and general layout unaltered.
Can I submit multi-line paragraphs or full documents in a single request?
Yes, you can pass multi-line text blocks and longer paragraphs into the text parameter. The API scans the entire string in one pass and returns the cleaned text, along with total removal metrics on paid plans.

Ready to build with Remove Punctuation? Start with 200 free credits — one key unlocks all 300+ APIs.

Explore the catalog

300+ APIs on the same key and the same response shape.

Browse all APIs