Text Tools

Updated about 10 yrs, 7 mths ago (August 23, 2013). Know a better answer? Let me know!

Text Tools

This page lets you do various things to text, and gives you the encoded, decoded, or otherwise converted text back. I hope you find it useful.

See also regex

Text Tools

It’s a text wizard, an online hashing program, a string encoder, a how-to, upper-caser, thing.

1: Enter text:

2: Select operation

addcslashes — Quote string with slashes in a C style
addslashes — Quote string with slashes
base64_decode — Decodes data encoded with MIME base64
base64_encode — Encodes data with MIME base64
bin2hex — Convert binary data into hexadecimal representation
convert_uudecode — Decode a uuencoded string
convert_uuencode — Uuencode a string
count_chars — Return information about characters used in a string
count_lines — Return the number of lines in a string
crc32 — Calculates the crc32 polynomial of a string
crypt — One-way string hashing
date — Convert a UNIX timestamp to an English time
gmdate — Convert a UNIX timestamp to an English time (in UTC/GMT)
hebrev — Convert logical Hebrew text to visual text
hebrevc — Convert logical Hebrew text to visual text with newline conversion
html_entity_decode — Convert all HTML entities to their applicable characters
htmlentities — Convert all applicable characters to HTML entities
htmlspecialchars — Convert special characters to HTML entities
htmlspecialchars_decode — Convert special HTML entities back to characters
json_decode — Decodes a JSON string
json_encode — Returns the JSON representation of a value
lcfirst — Make a string’s first character lowercase
line_reverse — Return lines in reverse order, last first
md5 — Calculate the md5 hash of a string
md5_raw — Calculate the md5 hash of a string, output raw binary
metaphone — Calculate the metaphone key of a string
nl2br — Inserts HTML line breaks before all newlines in a string
nothing — Does not alter the string, useful for viewing Hexadecimal representation of a string
parse_ini_string — Parse a configuration string
parse_str — Parses the string into variables
parse_url — Parse a URL and return its components
quoted_printable_decode — Convert a quoted-printable string to an 8 bit string
quoted_printable_encode — Convert an 8-bit string to a quoted-printable string
quotemeta — Quote meta characters
serialize — Generates a storable representation of a value
sha1 — Calculate the sha1 hash of a string
sha1_raw — Calculate the sha1 hash of a string, output raw binary
soundex — Calculate the soundex key of a string
str_rot13 — Perform the rot13 transform on a string
str_shuffle — Randomly shuffles a string
str_word_count — Return information about words used in a string
strip_tags — Strip HTML and PHP tags from a string
stripcslashes — Un-quote string quoted with addcslashes
stripslashes — Un-quotes a quoted string
strlen — Get string length
strrev — Reverse a string
strtolower — Make a string lowercase
strtotime — Parse about any English textual datetime description into a Unix timestamp
strtoupper — Make a string uppercase
trim — Strip whitespace (or other characters) from the beginning and end of a string
ucfirst — Make a string’s first character uppercase
ucwords — Uppercase the first character of each word in a string
unserialize — Creates a PHP value from a stored representation
urldecode — Decodes URL-encoded string
urlencode — URL-encodes string

More Information

Information gathered from the following:

 

Updated about 10 yrs, 7 mths ago (August 23, 2013). Know a better answer? Let me know!

Related categories [coloured].

Comment on this article (no HTML, max 1200 characters):