Our Network


Coming Soon


Coming Later

text escaper

world's simplest text tool

World's simplest browser-based utility for slash-escaping text. Load text in the input form on the left and you'll instantly get escaped text in the output area. Powerful, free, and fast. Load text – get slash-escaped text. Created by developers from team Browserling.

What is a text escaper?

With this tool, you can slash-escape all special symbols in the given text. It has the same behavior as PHP's addslashes() function. It adds a backslash before all double and single quotation marks, converts tabs to \t, converts newlines to \n, and each backslash gets replaced with two backslashes. You can now safely use this escaped text in the command line or place it between a new pair of quotes. Textabulous!


Text escaper examples

Click to try

James Bond Quote

In this example, we slash-escape the farmous James Bond quote. As you can see, backslashes get added before before single and double quotation marks.

"The name's Bond. James Bond."
\"The name\'s Bond. James Bond.\"

Escape a Multi-line Dialogue

In this example, we escape a dialogue between Andy and Red from the movie Shawshank Redemption. Each newline is replaced with the \n character, double quote is replaced by \".

Andy: "You know what the Mexicans say about the Pacific?" Red: "No." Andy: "They say it has no memory. That's where I want to live the rest of my life. A warm place with no memory."
Andy: \"You know what the Mexicans say about the Pacific?\"\nRed: \"No.\"\nAndy: \"They say it has no memory. That\'s where I want to live the rest of my life. A warm place with no memory.\"

Pro tips Master online text tools

You can pass input to this tool via ?input query argument and it will automatically compute output. Here's how to type it in your browser's address bar. Click to try!

https://onlinetexttools.com/escape-text?input=%22The%20name%27s%20Bond.%20James%20Bond.%22&

All Text Tools

Didn't find the tool you were looking for? Let us know what tool we are missing and we'll build it!
Split Text

Quickly split text into chunks.

Join Text

Quickly merge lines of text together via a delimiter.

Repeat Text

Quickly repeat text many times.

Reverse Text

Quickly write text backwards.

Truncate Text

Quickly cut text to the given length.

Slice Text

Quickly extract a slice from text.

Trim Text

Quickly trim left or right side of text.

Left-pad Text

Quickly pad the left side of text.

Right-pad Text

Quickly pad the right side of text.

Left-align Text

Quickly align text to the left side.

Right-align Text

Quickly align text to the right side.

Center Text

Quickly center text.

Indent Text

Quickly add indentation to each text line.

Unindent Text

Quickly delete indentation from each text line.

Justify Text

Quickly stretch spaces between words to make all text lines equal length.

Wrap Words in Text

Quickly wrap words in text to a specified length.

Reverse Words in Text

Quickly reverse every word in the given text.

Reverse Sentences in Text

Quickly reverse every sentence in the given text.

Reverse Paragraphs in Text

Quickly reverse every paragraph in the given text.

Swap Letters in Words

Quickly swap pairs of adjacent letters in words.

Swap Words in Text

Quickly swap pairs of adjacent words in text.

Duplicate Words in Text

Quickly make every word to be two words in the given text.

Remove Words from Text

Quickly delete certain words from the given text.

Duplicate Sentences in Text

Quickly make every sentence to be two sentences in the text.

Remove Sentences from Text

Quickly delete certain sentences from the given text.

Replace Words in Text

Quickly substitute certain words in text with other words.

Add Random Words to Text

Quickly insert random words in random positions in text.

Add Random Letters to Words

Quickly insert random letters in words in text.

Introduce Errors in Text

Quickly randomly change letters in text and make mistakes.

Generate Fake Text

Quickly create fake text using similar-looking characters.

Unfake Text

Quickly convert fake text containing fake characters to regular text.

Check if Text is Fake

Quickly check if the given text is forged (contains homoglyphs).

Remove Random Letters from Words

Quickly delete random letters from words in text.

Remove Random Symbols from Text

Quickly delete random symbols from text.

Add Symbols Around Words

Quickly add patterns before and after each word in text.

Remove Symbols From Around Words

Quickly remove patterns appearing before and after each word in text.

Add a Prefix to Text Lines

Quickly prepend a prefix to one or more text lines.

Add a Suffix to Text Lines

Quickly append a suffix to one or more text lines.

Remove a Prefix from Text

Quickly remove a prefix from one or more text lines.

Remove a Suffix from Text Lines

Quickly remove a suffix from one or more text lines.

Add a Prefix to Words

Quickly prepend a prefix to all words in text.

Add a Suffix to Words

Quickly append a suffix to all words in text.

Remove a Prefix from Words

Quickly remove any prefix from all words in text.

Remove a Suffix from Words

Quickly remove any suffix from the end of all words in text.

Insert Symbols Between Letters

Quickly insert characters between all letters of all words in text.

Add Symbols Around Letters

Quickly surround each letter of the text with decorative symbols.

Remove All Empty Lines

Quickly delete all blank lines from text.

Remove All Duplicate Lines

Quickly delete all repeated lines from text.

Filter Text Lines

Quickly return text lines that match a pattern or a regex.

Filter Words in Text

Quickly return words in text that match a pattern or a regex.

Filter Text Sentences

Quickly return all sentences that match a pattern or a regex.

Filter Text Paragraphs

Quickly return all paragraphs that match a pattern or a regex.

Sort Text Lines

Quickly sort lines alphabetically, numerically, or by their length.

Sort Sentences in Text

Quickly sort sentences alphabetically, numerically, or by their length.

Sort Paragraphs in Text

Quickly sort paragraphs alphabetically, numerically, or by their length.

Sort Words in Text

Quickly sort words alphabetically, numerically, or by their length.

Sort Letters in Words

Quickly sort all letters in all words in any text.

Sort Symbols in Text

Quickly sort all symbols in text alphabetically.

Randomize Letters in Text

Quickly randomize the order of letters in text.

Scramble Words

Quickly make text barely readable.

Randomize Words in Text

Quickly randomize the order of words in text.

Randomize Text Lines

Quickly randomize the order of lines in text.

Randomize Text Sentences

Quickly randomize the order of sentences in text.

Randomize Text Paragraphs

Quickly randomize the order of paragraphs in text.

Calculate Letter Sum

Quickly calculate the sum of letters as if they were numbers.

Unwrap Text Lines

Quickly remove line breaks and get a continuous text.

Extract a Text Fragment

Quickly extract a text snippet of the given length.

Find and Replace Text

Quickly find and replace text patterns.

Find the Length of Text

Quickly count the number of characters in text.

Find Top Letters in Text

Quickly find the most popular letters in the given text.

Find Top Words in Text

Quickly find the most popular words in the given text.

Calculate Text Entropy

Quickly calculate the Shannon entropy of any text.

Count Words in Text

Quickly find the number of words in text.

Print Text Statistics

Quickly analyze text and print its statistical information.

Find Unique Words in Text

Quickly find and print all unique words in text.

Find Duplicate Words in Text

Quickly find and print all repeated words in text.

Find Unique Letters in Text

Quickly find and print all unique letters in text.

Find Duplicate Letters in Text

Quickly find and print all repeated letters in text.

Remove Duplicate Words from Text

Quickly delete all repeated words in text.

Count Text Lines

Quickly find the number of lines in text.

Add Line Numbers

Quickly add a number before every text line.

Remove Line Numbers

Quickly remove line numbering in text.

Create an Image from Text

Quickly create an image from text.

Change Text Font

Quickly write the given text in a different font.

Remove Fancy Text Font

Quickly remove all fancy fonts and styling from text.

Write Text in Superscript

Quickly use superscript characters to write text.

Write Text in Subscript

Quickly use subscript characters to write text.

Generate Tiny Text

Quickly use tiny characters to write text.

Write Text in Bold

Quickly use bold characters to write text.

Write Text in Italic

Quickly use italic characters to write text.

Write Text in Cursive

Quickly use cursive script to write text characters.

Add an Underline to Text

Quickly add an underline below all letters and words in text.

Add a Strikethrough to Text

Quickly add a strikethrough to all letters and words in text.

Generate Zalgo Text

Quickly apply the Zalgo effect to the input text.

Undo Zalgo Text Effect

Quickly remove the Zalgo effect from the input text.

Create a Palindrome

Quickly construct a palindrome from plain text.

Check if Text is a Palindrome

Quickly test if text is a palindrome.

Change Text Case

Quickly switch between various letter cases in text.

Convert Text to Uppercase

Quickly convert text letters to uppercase.

Convert Text to Lowercase

Quickly convert text letters to lowercase.

Convert Text to Title Case

Quickly convert all words in text to title case.

Convert Text to Proper Case

Quickly capitalize the first letter of every word in text.

Randomize Text Case

Quickly randomize character case in text.

Invert Text Case

Quickly invert character case in text.

Add Line Breaks to Text

Quickly add newlines to paragraphs, lines, sentences, and words.

Remove Line Breaks from Text

Quickly remove newlines between text lines and paragraphs.

Replace Line Breaks in Text

Quickly replace all line breaks in text with a new character.

Randomize Line Breaks in Text

Quickly randomize line break count between lines and paragraphs.

Normalize Line Breaks in Text

Quickly normalize line break count between lines and paragraphs.

Fix Distance Between Paragraphs and Lines

Quickly adjust the line break distance in text.

Fancify Line Breaks in Text

Quickly add a fancy symbol at the end of each line and paragraph.

Convert Spaces to Newlines

Quickly replace spaces with newlines in text.

Convert Newlines to Spaces

Quickly replace newlines with spaces in text.

Convert Spaces to Tabs

Quickly get tabs instead of spaces in text.

Convert Tabs to Spaces

Quickly get spaces instead of tabs in text.

Convert Comma to Newline

Quickly replace all commas with newlines in text.

Convert Newline to Comma

Quickly replace all newlines with commas in text.

Convert Column to Comma

Quickly convert a column of text to a comma-separated text.

Convert Comma to Column

Quickly convert a comma-separated text to a column of text.

Convert Commas to Spaces

Quickly replace commas with spaces in text.

Convert Spaces to Commas

Quickly replace spaces with commas in text.

Replace Commas in Text

Quickly replace all commas in text with a new character.

Remove Extra Spaces

Quickly remove repeated spaces between words in text.

Increase Text Spacing

Quickly add extra spaces between words in text.

Normalize Text Spacing

Quickly change the number of spaces between words.

Randomize Text Spacing

Quickly mess up the spacing between words in any text.

Replace Spaces in Text

Quickly replace whitespace characters with other characters.

Remove All Whitespace

Quickly clear text from spaces, tabs, and newlines.

Remove All Punctuation

Quickly clear text from dots, commas, and similar characters.

Remove Diacritics from Text

Quickly remove all accent marks from all characters in text.

Increment Letters in Text

Quickly replace each letter in text with the next alphabet letter.

Decrement Letters in Text

Quickly replace each letter in text with the previous alphabet letter.

Add Quotes to Text

Quickly wrap text in quotes.

Remove Quotes from Text

Quickly delete quotes surrounding text.

Add Quotes to Words

Quickly surround all words in pairs of single or double quotes.

Remove Quotes from Words

Quickly delete quotes surrounding words in text.

Add Quotes to Lines

Quickly enclose text lines in quotation marks.

Remove Quotes from Lines

Quickly delete quotes that enclose lines of text.

Add Curse Words To Text

Quickly randomly insert swear words here and there in text.

Censor Words in Text

Quickly mask bad words or replace them with alternative words.

Anonymize Text

Quickly hide information in text so it can't be read.

Extract Text from HTML

Quickly extract tag content from HTML code.

Extract Text from XML

Quickly extract tag content from an XML document.

Extract Text from BBCode

Quickly extract all textual data from BBCode markup.

Extract Text from JSON

Quickly extract keys and values from a JSON data structure.

JSON Stringify Text

Quickly convert text to a JSON string.

JSON Unstringify Text

Quickly convert previously JSON stringified text to plain text.

Slash-escape Text

Quickly escape special symbols in text with slashes.

Slash-unescape Text

Quickly remove slashes from previously slash-escaped text.

ROT13 Text

Quickly encode or decode text using ROT13 cipher algorithm.

ROT47 Text

Quickly encode and decode text with ROT47 cipher algorithm.

Generate Text of Certain Length

Quickly generate text that has a specific length.

Generate Text from a RegExp

Quickly create text that matches the given regexp.

Extract RegExp Matches from Text

Quickly find and return all regexp matches.

Highlight RegExp Matches in Text

Quickly highlight parts of text that match a regular expression.

Test Text with a RegExp

Quickly check whether text matches a regular expression.

Printf Text

Quickly format text using the printf or sprintf function.

Rotate Text

Quickly cyclically rotate text letters to the right or left.

Flip Text Vertically

Quickly rewrite text to vertical position.

Rewrite Text

Quickly rewrite text using transformation rules.

Change Text Alphabet

Quickly replace letters in text from one alphabet to another.

Replace Letters in Text

Quickly substitute certain letters or symbols in text with other letters.

Convert Letters to Digits

Quickly convert individual letters in text to digits or numbers.

Convert Digits to Letters

Quickly convert individual digits or numbers in text to letters.

Replace Words with Digits

Quickly replace certain words in text with digits or numbers.

Replace Digits with Words

Quickly replace certain digits or numbers in text with words.

Duplicate Letters in Text

Quickly replace certain letters and symbols in text with two copies.

Remove Letters from Text

Quickly delete certain letters and symbols from text.

Erase Letters from Words

Quickly erase some letters from words and preserve the text structure.

Erase Words from Text

Quickly erase some words from text and preserve the text structure.

Visualize Text Structure

Quickly create an abstract drawing that shows the structure of the text.

Highlight Letters in Text

Quickly add highlighting to certain letters in text.

Highlight Words in Text

Quickly add highlighting to certain words in text.

Highlight Patterns in Text

Quickly add highlighting to certain patterns in text.

Highlight Sentences in Text

Quickly add highlighting to certain sentences in text.

Replace Vowels in Text

Quickly substitute certain vowels in text with other characters.

Duplicate Vowels in Text

Quickly replace each vowel with two or more vowels in any text.

Remove Vowels from Text

Quickly delete all vowels from text.

Replace Consonants in Text

Quickly substitute certain consonants in text with other characters.

Duplicate Consonants in Text

Quickly replace each consonant with two or more consonants in any text.

Remove Consonants from Text

Quickly delete all consonants from text.

Convert Text to Nice Columns

Quickly format text so that all words are in neat columns.

Convert Nice Columns to Text

Quickly convert data aligned in columns to linear text.

Generate Text Unigrams

Quickly create a list of all monograms from text.

Generate Text Bigrams

Quickly create a list of all digrams from text.

Generate Text N-grams

Quickly create a list of all ngrams from text.

Generate Text Skip-grams

Quickly create a list of all k-skip-n-grams.

Create ZigZag Text

Quickly make letters in text go in a zigzag.

Draw a Box Around Text

Quickly surround any text in a box.

Convert Text to Morse Code

Quickly write the text in Morse code.

Convert Morse Code to Text

Quickly decode Morse code to plain text.

Calculate Text Complexity

Quickly calculate the complexity of the given text.

URL-encode Text

Quickly URL-escape text.

URL-decode Text

Quickly URL-unescape text.

HTML-encode Text

Quickly convert all plain text characters to HTML entities.

HTML-decode Text

Quickly convert HTML entities to plain text.

Convert Text to URL Slug

Quickly convert text to a user-friendly URL slug.

Base64-encode Text

Quickly encode text to base64.

Base64-decode Text

Quickly decode base64-encoded text.

Convert Text to Binary

Quickly convert plain text to binary text.

Convert Binary to Text

Quickly convert binary text to plain text.

Convert Text to Octal

Quickly convert plain text to octal text.

Convert Octal to Text

Quickly convert octal text to plain text.

Convert Text to Decimal

Quickly convert text to decimal values.

Convert Decimal to Text

Quickly convert decimal values to text.

Convert Text to Hex

Quickly convert plain text to hexadecimal values.

Convert Hex to Text

Quickly convert hexadecimal to readable text.


Coming Soon

These text tools are on the way!
Calculate Levenstein Distance

Find Levenstein distance of two text fragments.

Tokenize Text

Create a list of all words in text.

Lemmatize Text

Lemmatize all words in text.

Stem Words in Text

Apply stemming to all words in text.

Color Symbols in Text

Add color to punctuation symbols in text.

Color Letters in Text

Add color to letters in text.

Color Words in Text

Add color to words in text.

Color Sentences in Text

Add color to sentences in text.

Color Paragraphs in Text

Add color to paragraphs in text.

Add Fuzziness to Text

Add slight perturbations to the given text.

Generate Glitch Text

Mess up characters in your text.

Generate Random Text

Generate text using random words.

Generate Lorem Ipsum Text

Generate lorem ipsum placeholder text.

Create a Crossword Puzzle

Generate a crossword puzzle from the given words.

Convert Text to Braille

Convert English text to Braille writing system.

Convert Braille to Text

Convert Braille symbols to English text.

Convert Text to Code Points

Convert text characters to their corresponding code points.

Convert Code Points to Text

Convert numeric character code points to text.

Convert CSV to Text Columns

Convert CSV data to plain text columns.

Convert Text Columns to CSV

Convert plain text columns to a CSV file.

Generate Text Trigrams

Create a list of all 3-grams.

Convert Text to a Number

Encode the entire text to a single number.

Convert a Number to Text

Decode text that was encoded as a number back to text.

Chunkify Text

Divide text into chunks of certain size.

Format Text

Apply formatting and modification functions to text.

Find the Number of Symbols in Text

Count the number of punctuation marks and other sybmols in text.

Find the Number of Letters in Text

Count the number of letters in text.

Find the Number of Sentences in Text

Count the number of sentences in text.

Find the Number of Paragraphs in Text

Count the number of paragraphs in text.

Transform Text

Apply text transformation rules to any text.

Find Patterns in Text

Analyze text for interesting patterns.

Add Diacritics to Text

Add accent marks to text letters.

Enumerate Letters

Add a counter before every letter in text.

Enumerate Words

Add a counter before every word in text.

Enumerate Sentences

Add a counter before every sentence in text.

Enumerate Paragraphs

Add a counter before every paragraph in text.

Interweave Text Fragments

Interleave the letters or words of the given text fragments.

Randomize Letter Spacing

Mess up the spacing between letters in any text.

Find All Email Addresses in Text

Extract all emails from text.

Find All Web Addresses in Text

Extract all URLs from text.

Find All Numbers in Text

Extract all numbers from text.

Find All Countries in Text

Extract all countries from text.

Find All Cities in Text

Extract all cities from text.

Encode Text to Punycode

Convert text to punycode.

Decode Punycode to Text

Convert punycode to text.

Convert Text to Baudot Code

Encode text to Baudot encoding.

Convert Baudot Code to Text

Decode Baudot-encoded text.

Convert Text to Base32

Encode text to base32 encoding.

Convert Base32 to Text

Decode base32-encoded text.

Convert Text to Base45

Encode text to base45 encoding.

Convert Base45 to Text

Decode base45-encoded text.

Convert Text to Base58

Encode text to base58 encoding.

Convert Base58 to Text

Decode base58-encoded text.

Convert Text to Base85

Encode text to Ascii85 encoding.

Convert Base85 to Text

Decode Ascii85-encoded text.

Convert Text to Base65536

Encode text to base65536 encoding.

Convert Base65536 to Text

Decode base65536-encoded text.

Convert Text to Nettext

Encode text to nettext encoding.

Convert Nettext to Text

Decode nettext-encoded text.

Convert Text to Speech

Convert written text into natural sounding voice.

Convert Speech to Text

Convert a voice recording to text.

UTF8-encode Text

Encode text to UTF8 encoding.

UTF8-decode Text

Decode UTF8-encoded text.

UTF16-encode Text

Encode text to UTF16 encoding.

UTF16-decode Text

Decode UTF8-encoded text.

UTF32-encode Text

Encode text to UTF32 encoding.

UTF32-decode Text

Decode UTF32-encoded text.

IDN-encode Text

Encode text to IDN.

IDN-decode Text

Decode IDN-encoded text.

Uuencode Text

Convert text to Unix-to-Unix encoding.

Uudecode Text

Decode Unix-to-Unix-encoded text.

Xxencode Text

Convert text to Xxencoding.

Xxdecode Text

Decode Xxencoded text.

Convert Text to Quoted Printable

Encode text to QP encoding.

Convert Quoted Printable to Text

Decode QP-encoded text.

Strip HTML Tags from Text

Remove all HTML tags from Text.

Strip XML Tags from Text

Remove all XML tags from Text.

Remove Carriage Returns from Text

Remove new line symbols from the end of each text line.

Compare Text

Find the difference between two text fragments.

Create Text Typos

Generate various text typos.

Create a Mirror Copy of Text

Generate a mirror reflection of text.

Cut Text

Cut out a piece of text.

Grep Text

Grep text for regular expression matches.

Head Text

Extract first symbols, words, or lines from text.

Tail Text

Extract last symbols, words, or lines from text

Generate Text Mnemonic

Return the first letter of each word in text.

Duplicate Paragraphs in Text

Make every paragraph to be two paragraphs in the given text.

Create a Word Cloud

Create an image from all words in text.

Create a Letter Circle

Create a circle from all letters in text.

Create a Letter Spiral

Create a spiral from all letters in text.

Create a Word Circle

Create a circle from all words in text.

Create a Letter Matrix

Create a matrix of any dimensions from letters in text.

Create a Word Matrix

Create a matrix of any dimensions from words in text.

Create a Word Spiral

Create a spiral from all words in text.

Split Words into Syllables

Split the input text into syllables.

Draw LCD Text

Write any text on an LCD display (with LCD font).

Draw a 2D Text

Convert text to 2-dimensional drawing.

Draw a 3D Text

Convert text to 3-dimensional drawing.

Create a Text Marquee

Create a horizontally or vertically scrolling text.

Animate Text

Create a GIF animation of a text message.

Slowly Reveal Text Message

Create a GIF animation that slowly reveals a text message.

Mojibake Text

Decode text using the wrong encoding and create garbled text.

Unbake Mojibaked Text

Try to find original text from garbled mojibaked text.

Obfuscate Text

Make text harder to read.

Print the Alphabet

Generate the entire alphabet from a to z.

Randomize the Alphabet

Print the alphabet in random order.

Remove Curse Words from Text

Delete swear words from text.

Edit Text

Edit text in a neat browser-based editor.


Subscribe!

Subscribe to our updates. We'll let you know when we release new tools, features, and organize online workshops.

Enter your email here


Feedback. We'd love to hear from you! 👋