EditSafely

String Tools

Encode, decode, split, join and manipulate strings. All 159 tools run entirely in your browser, so your data never leaves your device.

Base64-decode a StringDecode a Base64-encoded string back into readable text.
Base64-encode a StringConvert a string to Base64 encoding, right in your browser.
Find and Replace a StringReplace every match of a word or regular expression.
Find the Length of a StringCount how many characters a string contains.
Generate a Random StringCreate a random string of any length from a chosen character set.
URL-encode a StringPercent-escape a string so it's safe to use in a URL.
URL-decode a StringTurn a percent-escaped URL string back into plain text.
Diff Two StringsHighlight what changed between an original and a changed string.
Split a StringBreak a string into pieces by length or by a separator.
Reverse a StringWrite a string backwards, character by character.

Encode & decode42

Base64, URL, HTML, UTF and other string encodings.

Base64-decode a StringDecode a Base64-encoded string back into readable text.
Base64-encode a StringConvert a string to Base64 encoding, right in your browser.
URL-encode a StringPercent-escape a string so it's safe to use in a URL.
URL-decode a StringTurn a percent-escaped URL string back into plain text.
HTML-encode a StringConvert a string to HTML entities so it renders as plain text.
HTML-decode a StringConvert HTML entities back into the characters they represent.
Slash-escape a StringBackslash-quote newlines, tabs, quotes and other characters.
Slash-unescape a StringTurn backslash escape sequences back into real characters.
UTF-8 Encode a StringEncode a string as its UTF-8 bytes in hexadecimal.
UTF-8 Decode a StringDecode UTF-8 hex bytes back into a string.
Convert a String to BytesEncode a string as its sequence of UTF-8 byte values.
Convert Bytes to a StringDecode a sequence of UTF-8 byte values back into a string.
Base32 Encode a StringEncode a string to Base32.
Base32 Decode a StringDecode a string from Base32.
Base58 Encode a StringEncode a string to Base58.
Base58 Decode a StringDecode a string from Base58.
Ascii85 Encode a StringEncode a string to Ascii85.
Ascii85 Decode a StringDecode a string from Ascii85.
Base45 Encode a StringEncode a string to Base45.
Base45 Decode a StringDecode a string from Base45.
ROT13 a StringEncode or decode a string with the ROT13 letter cipher.
ROT47 a StringEncode or decode a string with the ROT47 cipher over printable ASCII.
ROT18 a StringRotate letters by 13 and digits by 5: ROT13 plus ROT5.
Convert a String to PunycodeEncode a Unicode string to its Punycode representation.
Convert Punycode to a StringDecode a Punycode string back to Unicode.
IDN Encode a StringEncode an internationalized domain name to its ASCII (xn--) form.
IDN Decode a StringDecode an ASCII (xn--) domain name back to Unicode.
UTF-16 Encode a StringEncode a string as its UTF-16 code units in hexadecimal.
UTF-16 Decode a StringDecode UTF-16 hex code units back into a string.
UTF-32 Encode a StringEncode a string as its UTF-32 code points in hexadecimal.
UTF-32 Decode a StringDecode UTF-32 hex code points back into a string.
Quoted-Printable Encode a StringConvert a string to quoted-printable encoding.
Quoted-Printable Decode a StringConvert quoted-printable encoded data to a string.
Uuencode a StringConvert a string to Unix-to-Unix encoding.
Uudecode a StringConvert Unix-to-Unix data to a string.
Xxencode a StringConvert a string to Xxencoding.
Xxdecode a StringConvert an Xxencoded string to a regular string.
Convert a String to a NetstringWrap a string as a length-prefixed netstring.
Convert a Netstring to a StringDecode a netstring and output the string it contains.
Convert a String to a HyperstringTurn a plain string into an HTML fragment with one paragraph per line.
Convert a Hyperstring to a StringStrip HTML tags and entities to recover the plain string.
Convert a String to IntegersTurn each character into its Unicode code-point value.

Find, replace & extract20

Search a string, replace text or pull out parts of it.

Find and Replace a StringReplace every match of a word or regular expression.
Replace Multiple StringsApply a whole set of find/replace rules in one pass.
Extract a SubstringGrab a fragment of a string by start position and length.
Extract Emails from a StringFind and list all the email addresses in a string.
Extract URLs from a StringFind and list all the web addresses in a string.
Extract Numbers from a StringFind and list all the numbers in a string.
Extract Regex Matches from a StringPull every substring that matches a regular expression.
Test a String with RegexCheck whether a string matches a regular expression.
Grep a StringKeep the lines of a string that match a regular expression.
Filter String LinesKeep or drop the lines of a string that match a pattern.
Head a StringKeep the first few lines, words, or characters of a string.
Tail a StringKeep the last few lines, words, or characters of a string.
Slice a StringExtract a slice of a string between two positions.
Truncate a StringCut a string down to a given length.
HTML-strip a StringStrip all HTML tags from a string.
Delete Characters from a StringRemove every occurrence of the characters you specify.
Delete Symbols from a StringStrip punctuation and symbols, keeping letters, digits, and spaces.
Delete String VowelsRemove vowels from a string.
Delete String ConsonantsRemove consonants from a string.
Remove All PunctuationDelete dots, commas and other punctuation from a string.

Count & analyze16

Length, word and line counts, and frequency of a string.

Find the Length of a StringCount how many characters a string contains.
Number of Words in a StringCount how many words a string contains.
Number of Letters in a StringCount how many letters a string contains.
Number of Lines in a StringCount how many lines a multi-line string contains.
Number of Paragraphs in a StringCount how many paragraphs a multi-line string contains.
Count Newlines in a StringCount how many line breaks a string contains.
Calculate String StatisticsReport a string's length, word count, entropy and more.
String Frequency AnalysisFind the most frequent letters and words in a string.
Find Mistakes in a StringSpell-check a string against an English dictionary and get suggestions.
Generate TrigramsList every three-token gram from a string.
Generate All N-gramsGenerate all ngrams of a string.
Generate N-skip-M-gramsGenerate n-skip-m-grams of a string.
Tokenize a StringSplit a string into word or character tokens.
Stem a StringReduce every word in a string to its Porter stem.
Lemmatize a StringReduce every word in a string to a dictionary base form.
Divide a String into SyllablesSplit each word of a string into its syllables.

Whitespace & layout18

Trim, pad, align and fix spaces, tabs and newlines.

Trim a StringTrim whitespace from the left or right side of a string.
Remove All WhitespaceDelete every space, tab and newline from a string.
Remove Duplicate Spaces from a StringCollapse runs of repeated spaces down to a single space.
Remove All Empty LinesDelete every blank line from a string.
Convert Newlines to SpacesReplace line breaks in a string with spaces.
Convert Spaces to NewlinesReplace spaces and tabs in a string with line breaks.
Convert Tabs to SpacesReplace every tab character in a string with spaces.
Convert Spaces to TabsTurn groups of spaces in a string into tab characters.
Left-pad a StringPad the left side of every line to a fixed length.
Right-pad a StringPad the right side of every line to a fixed length.
Center a StringCenter every line of a string within a given width.
Left-align a StringRemove leading indentation so every line starts at the margin.
Right-align a StringAlign every line of a string to the right margin.
Justify a StringStretch each line so it aligns to both the left and right margins.
Wrap a StringWrap a string to a maximum line length.
Format a Multi-line StringTidy a multi-line string: trim lines and collapse blank runs.
Number a Multi-line StringAdd a line number to the start of every line.
Add Duplicate Spaces to a StringReplace each single space with two (or more) spaces.

Change letters & case17

Case, accents, quotes, prefixes and character tweaks.

Title-case a StringCapitalize a string the way a title would be written.
Capitalize Words in a StringMake the first letter of every word uppercase.
Proper-case a StringUppercase the first letter of every word, leaving the rest as-is.
Slugify a StringCreate an SEO-friendly URL from a string.
Quote a StringWrap a string in a pair of quotes.
Unquote a StringRemove the quotes surrounding a string.
Fix String QuotingBalance mismatched surrounding quotes on each line of a string.
Add a Prefix to a StringPrepend text to a string (or to every line of it).
Add a Suffix to a StringAppend text to a string (or to every line of it).
Remove Accent CharactersRemove all diacritical signs from a string.
Add Accents to a StringRandomly sprinkle combining diacritics over the letters of a string.
Replace Letters with DigitsRewrite a string in leetspeak by swapping letters for look-alike digits.
Reduce String AlphabetLimit a string to a small alphabet such as a-z and 0-9.
Repeat a StringDuplicate a string as many times as you need.
Repeat String CharactersDuplicate every character in a string a fixed number of times.
Rewrite a StringA tiny string rewriting system.
Printf a StringApply a printf/sprintf format to whitespace-separated arguments.

Split, join & sort17

Split a string, join several, sort or reorder parts.

Split a StringBreak a string into pieces by length or by a separator.
Join StringsJoin a list of strings (one per line) with a delimiter.
Reverse a StringWrite a string backwards, character by character.
Sort StringsSort a list of strings alphabetically, numerically or by length.
Convert a String to an ArrayBuild a JSON, JavaScript, or Python array from a string's parts.
Chunkify a StringSplit a string into fixed-length chunks.
Partition a StringSplit a string into pieces by chunk length, part count, or a separator.
Sort Words in a StringSort all the words of a string alphabetically.
Sort Letters in a StringSort all the letters of a string alphabetically.
Sort a Numeric StringSort the whitespace-separated numbers in a string.
Reverse Words in a StringReverse the order of all the words in a string.
Reverse Sentences in a StringReverse the order of all the sentences in a string.
Shuffle Words in a StringRandomly reorder all the words in a string.
Rotate a StringCyclically shift the characters of a string left or right.
Shift a StringSlide a string left or right, filling the vacated positions.
Transpose a StringFlip a multi-line string's rows and columns.
Mix Two StringsInterleave two strings character by character into one.

Compare4

Diff two strings and measure how far apart they are.

Diff Two StringsHighlight what changed between an original and a changed string.
String Levenshtein DistanceCount the single-character edits between two strings.
String Hamming DistanceCount the differing positions between two equal-length lines.
Find the LCS of Two StringsFind the longest common subsequence of two strings.

Generate12

Make random, custom or test strings of any length.

Generate a Random StringCreate a random string of any length from a chosen character set.
Create a String of Certain LengthBuild a string that is exactly the length you ask for.
Generate a String from RegexProduce random strings that match a regular expression.
Generate a Custom StringBuild a random string from a chosen character set, with affixes.
Generate a Long StringCreate a long random string from a chosen character set.
Generate a Short StringCreate a short random string from a chosen character set.
Generate Twin StringsCreate two strings that are anagrams of one another.
Generate Triplet StringsCreate three strings that are anagrams of one another.
Generate String TyposCreate one-edit misspellings of a string.
Create Mistakes in a StringIntroduce random typos by substituting characters in a string.
Create an Anagram from a StringShuffle the letters of a string into a new arrangement.
Create String MnemonicBuild an acronym from the first letter of every word.

Fun & visual13

Draw strings as images, shapes, colors and effects.

View and Edit StringsEdit a string in your browser and see live character stats.
Convert a String to an ImageRender a string as a downloadable PNG, JPG or WebP image.
Color a StringPaint each character or word of a string in cycling rainbow colors.
Generate a Zalgo StringAdd stacked Unicode marks above, through and below each letter.
Make a Zalgo String ReadableRemove Unicode mess from a string.
Mirror a StringReflect a string as if seen in a mirror.
Generate an LCD StringRender a string as three-row seven-segment LCD ASCII art.
Create a String CloudDraw a word cloud of a string's most frequent words, with their counts.
Circlify a StringArrange the characters of a string around a circle.
Squarify a StringLay a string out around the border of a square.
Spiralify a StringLay a string out in an inward spiral.
Zigzagify a StringLay a string out in a zigzag across several rows.
Blockify a StringFit a string into an N-by-M block of characters.

How it works

Your string work stays on your device

All 159 string tools on this page are JavaScript that your browser downloads once and then runs on your own machine. No server sees your input, because no server is involved in the work at all.

Put the text you paste into any of these tools and it stays inside this tab.

How most online tools do it

Every character sent to a stranger's server
  1. Text from an internal docin your clipboard
  2. Sent to their serverlogged, cached, who knows
  3. The result comes backafter a round trip

How EditSafely does it

0 bytes over the network
  1. Text from an internal docin your clipboard
  2. Your browser does the workin this tab, in memory
  3. The transformed textappears as you type
  • There is no upload step

    Your browser opens the file from your disk the same way an installed app would. The bytes go from your drive into this tab and no further.

  • Big files are not a problem

    No server means no upload limit and no queue. Speed comes down to your own machine, so a multi gigabyte file starts processing right away instead of after a long transfer.

  • It keeps working offline

    Once the page has loaded you can disconnect from the internet entirely and the tool carries on. There is nothing on the other end for it to talk to.

  • Nothing is stored anywhere

    No account, no history, no copy on a server waiting to be leaked. Close the tab and the work is gone from everywhere it ever existed.

Explore more categories